def init(): """Locally set up basic files for using AWS.""" fabfile_context = {'roledefs': DEFAULT_ROLEDEFS, 'keyfile': repr('%s.pem' % env.farmboy_aws_key_pair), 'preamble': DEFAULT_PREAMBLE} util.template_file('farmboy/fabfile.py.template', 'fabfile.py', fabfile_context)
def init(): """Locally set up basic files for using Vagrant.""" vagrantfile = util.files('vagrant/Vagrantfile') # TODO(termie): local cp or shutil? local('cp %s %s' % (vagrantfile, './Vagrantfile')) #shutil.copy(vagrantfile, './Vagrantfile') fabfile_context = {'roledefs': repr(DEFAULT_ROLEDEFS), 'keyfile': KEYFILE_S, 'preamble': '', } util.template_file('farmboy/fabfile.py', 'fabfile.py', fabfile_context)