Slide 11
Slide 11 text
例子 4 : Java, Python, Ruby 比较
●
Python 的配置文件 (Fabric)
def deploy(setup_initial_data = None, server_password = None ):
deployed_to = fabric.operations.prompt("Where do you want it deployed?",
default = settings["default_deployed_to"])
print " === now executing the deploy script”
print “, result will be saved as:{0}".format(log_file)
command = “ deploy command... “
local(command.format(server_password, log_file, user, portal_server, deployed_to),
capture=True)