Class: Knife::Clc::Bootstrap::Bootstrapper
- Inherits:
-
Object
- Object
- Knife::Clc::Bootstrap::Bootstrapper
- Defined in:
- lib/knife-clc/bootstrap/bootstrapper.rb
Instance Attribute Summary collapse
-
#cloud_adapter ⇒ Object
readonly
Returns the value of attribute cloud_adapter.
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
Instance Method Summary collapse
- #async_bootstrap(launch_parameters) ⇒ Object
-
#initialize(params) ⇒ Bootstrapper
constructor
A new instance of Bootstrapper.
- #prepare ⇒ Object
- #sync_bootstrap(server) ⇒ Object
Constructor Details
#initialize(params) ⇒ Bootstrapper
Returns a new instance of Bootstrapper.
16 17 18 19 20 |
# File 'lib/knife-clc/bootstrap/bootstrapper.rb', line 16 def initialize(params) @cloud_adapter = params.fetch(:cloud_adapter) @config = params.fetch(:config) @errors = params.fetch(:errors) end |
Instance Attribute Details
#cloud_adapter ⇒ Object (readonly)
Returns the value of attribute cloud_adapter.
14 15 16 |
# File 'lib/knife-clc/bootstrap/bootstrapper.rb', line 14 def cloud_adapter @cloud_adapter end |
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/knife-clc/bootstrap/bootstrapper.rb', line 14 def config @config end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
14 15 16 |
# File 'lib/knife-clc/bootstrap/bootstrapper.rb', line 14 def errors @errors end |
Instance Method Details
#async_bootstrap(launch_parameters) ⇒ Object
26 27 28 |
# File 'lib/knife-clc/bootstrap/bootstrapper.rb', line 26 def async_bootstrap(launch_parameters) async_bootstrap_method.execute(launch_parameters) end |
#prepare ⇒ Object
30 31 32 |
# File 'lib/knife-clc/bootstrap/bootstrapper.rb', line 30 def prepare validator.validate end |
#sync_bootstrap(server) ⇒ Object
22 23 24 |
# File 'lib/knife-clc/bootstrap/bootstrapper.rb', line 22 def sync_bootstrap(server) sync_bootstrap_method.execute(server) end |