Module: Hamal::Commands
Instance Method Summary collapse
Methods included from Stages
#build_new_image, #clean_up, #run_deploy_tasks, #start_new_container, #stop_old_container, #switch_traffic
Methods included from Helpers
Methods included from Config
#app_local_ports, #app_name, #app_repo, #config_file, #deploy_config, #deploy_env, #deployed_image, #deployed_revision, #project_root, #server
Instance Method Details
#execute ⇒ Object
202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 |
# File 'lib/hamal.rb', line 202 def execute abort "Configure server in deploy config file" unless server case ARGV.shift when "deploy" deploy_command when "console" console_command when "logs" logs_command when "sudo" sudo_command else help_command end end |