Class: EY::Serverside::CLI::App

Inherits:
Thor
  • Object
show all
Extended by:
Helpers
Defined in:
lib/engineyard-serverside/cli/app.rb

Overview

App is the actual Thor-based entry point for the engineyard-serverside CLI application

Constant Summary

Constants inherited from Thor

Thor::HELP_MAPPINGS, Thor::THOR_RESERVED_WORDS, Thor::VERSION

Instance Attribute Summary

Attributes included from Thor::Base

#args, #options, #parent_options

Instance Method Summary collapse

Methods included from Helpers

account_app_env_options, config_option, framework_env_option, instances_options, stack_option, verbose_option

Methods inherited from Thor

check_unknown_options!, check_unknown_options?, default_task, desc, help, #help, long_desc, map, method_option, method_options, printable_tasks, register, subcommand, subcommands, task_help

Methods included from Thor::Base

included, #initialize, register_klass_file, shell, shell=, subclass_files, subclasses

Instance Method Details

#deploy(default_task = :deploy) ⇒ Object



55
56
57
58
59
60
61
62
# File 'lib/engineyard-serverside/cli/app.rb', line 55

def deploy(default_task=:deploy)

  # By default, we'll want to perform the :deploy workflow, but this
  # method is also the entry point for the rollback workflow. So,
  # we'll just let the workflow system figure out what to do based on
  # the task passed in from the command line.
  Workflows.perform(default_task, options)
end

#disable_maintenanceObject



87
88
89
# File 'lib/engineyard-serverside/cli/app.rb', line 87

def disable_maintenance
  Workflows.perform(:disable_maintenance, options)
end

#enable_maintenanceObject



69
70
71
# File 'lib/engineyard-serverside/cli/app.rb', line 69

def enable_maintenance
  Workflows.perform(:enable_maintenance, options)
end

#hook(hook_name) ⇒ Object



105
106
107
108
109
110
# File 'lib/engineyard-serverside/cli/app.rb', line 105

def hook(hook_name)
  Workflows.perform(
    :hook,
    options.merge(:hook_name => hook_name)
  )
end

#integrateObject



121
122
123
# File 'lib/engineyard-serverside/cli/app.rb', line 121

def integrate
  Workflows.perform(:integrate, options)
end

#maintenance_statusObject



78
79
80
# File 'lib/engineyard-serverside/cli/app.rb', line 78

def maintenance_status
  Workflows.perform(:maintenance_status, options)
end

#restartObject



130
131
132
# File 'lib/engineyard-serverside/cli/app.rb', line 130

def restart
  Workflows.perform(:restart, options)
end