Class: EY::Serverside::Slug::Distributor
- Inherits:
-
Object
- Object
- EY::Serverside::Slug::Distributor
- Defined in:
- lib/engineyard-serverside/slug/distributor.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#servers ⇒ Object
readonly
Returns the value of attribute servers.
-
#shell ⇒ Object
readonly
Returns the value of attribute shell.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config, shell, servers) ⇒ Distributor
constructor
A new instance of Distributor.
Methods included from Runner
#run, #run_and_output, #run_and_success?, #runner
Methods included from Railway
Methods included from Result::DSL
Constructor Details
#initialize(config, shell, servers) ⇒ Distributor
Returns a new instance of Distributor.
20 21 22 23 24 |
# File 'lib/engineyard-serverside/slug/distributor.rb', line 20 def initialize(config, shell, servers) @config = config @shell = shell @servers = servers end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
18 19 20 |
# File 'lib/engineyard-serverside/slug/distributor.rb', line 18 def config @config end |
#servers ⇒ Object (readonly)
Returns the value of attribute servers.
18 19 20 |
# File 'lib/engineyard-serverside/slug/distributor.rb', line 18 def servers @servers end |
#shell ⇒ Object (readonly)
Returns the value of attribute shell.
18 19 20 |
# File 'lib/engineyard-serverside/slug/distributor.rb', line 18 def shell @shell end |
Class Method Details
.distribute(data = {}) ⇒ Object
14 15 16 |
# File 'lib/engineyard-serverside/slug/distributor.rb', line 14 def self.distribute(data = {}) new(data[:config], data[:shell], data[:servers]).call(data) end |