Class: EY::Serverside::CLI::Workflows::Base
- Inherits:
-
Object
- Object
- EY::Serverside::CLI::Workflows::Base
- Defined in:
- lib/engineyard-serverside/cli/workflows/base.rb
Overview
Base is the template from which all Workflows are derived
Direct Known Subclasses
CallingDeployHooks, DeployingApplications, DisablingMaintenance, EnablingMaintenance, IntegratingServers, RestartingApplications, RollingBackApplications, ShowingMaintenanceStatus
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Base
constructor
A new instance of Base.
- #perform ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Base
Returns a new instance of Base.
15 16 17 |
# File 'lib/engineyard-serverside/cli/workflows/base.rb', line 15 def initialize( = {}) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
13 14 15 |
# File 'lib/engineyard-serverside/cli/workflows/base.rb', line 13 def @options end |
Class Method Details
.perform(options = {}) ⇒ Object
33 34 35 |
# File 'lib/engineyard-serverside/cli/workflows/base.rb', line 33 def self.perform( = {}) new().perform end |
Instance Method Details
#perform ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/engineyard-serverside/cli/workflows/base.rb', line 19 def perform shell.debug "Initializing #{About.name_with_version}." begin procedure rescue EY::Serverside::RemoteFailure => remote_error shell.fatal(remote_error.) raise rescue Exception => error shell.fatal("#{error.backtrace[0]}: #{error.} (#{error.class})") raise end end |