def run_command(app_name, app_config, command): (app_config, tunneler) = prepare_app(app_name, app_config) env.host_string = app_config['run_server'] with tunneler(): with cd(app_name): command = shared.shell_escape(command) run('cotton-deploy/run-command {0}'.format(command))
def _create_process_type_run_scripts(self, procfile): for process_type, command in procfile.items(): _apply_template2( 'run-process', 'run-{0}'.format(process_type), { 'port': self._ports.get(process_type), 'program_command': shared.shell_escape(command) }, mode=0700 )