Class: Elzar::Cli::Preheat
Instance Attribute Summary collapse
-
#instance_name ⇒ Object
readonly
Returns the value of attribute instance_name.
Instance Method Summary collapse
-
#initialize(instance_name, options = {}) ⇒ Preheat
constructor
A new instance of Preheat.
- #run ⇒ Object
Methods inherited from Runner
#require_arguments!, required_argument, required_arguments, run
Constructor Details
#initialize(instance_name, options = {}) ⇒ Preheat
Returns a new instance of Preheat.
90 91 92 93 |
# File 'lib/elzar/cli.rb', line 90 def initialize(instance_name, = {}) @instance_name = instance_name @aws_config_dir = [:aws_config_dir] end |
Instance Attribute Details
#instance_name ⇒ Object (readonly)
Returns the value of attribute instance_name.
86 87 88 |
# File 'lib/elzar/cli.rb', line 86 def instance_name @instance_name end |
Instance Method Details
#run ⇒ Object
95 96 97 98 99 100 101 102 103 |
# File 'lib/elzar/cli.rb', line 95 def run notify "Provisioning an instance..." instance_id, instance_ip = Elzar::Compute.provision_and_bootstrap!(instance_name, aws_config) notify <<-MSG Finished provisioning server Instance ID: #{instance_id} Instance IP: #{instance_ip} MSG end |