Class: Dployr::Commands::ProvisionTest
- Defined in:
- lib/dployr/commands/provision_test.rb
Instance Method Summary collapse
- #action ⇒ Object
-
#initialize(options, action) ⇒ ProvisionTest
constructor
A new instance of ProvisionTest.
Methods inherited from Base
#create, #create_compute_client, #get_region_config
Methods included from Utils
parse_attributes, parse_flags, parse_matrix
Constructor Details
#initialize(options, action) ⇒ ProvisionTest
Returns a new instance of ProvisionTest.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/dployr/commands/provision_test.rb', line 8 def initialize(, action) super puts "Connecting to #{@provider}...".yellow @client = Dployr::Compute.const_get(@provider.to_sym).new(@options, @p_attrs) puts "Looking for #{@p_attrs["name"]} in #{@options[:region]}...".yellow @ip = @client.get_ip if @ip puts "#{@p_attrs["name"]} found with IP #{@ip}".yellow else raise "#{@p_attrs["name"]} not found" end Dployr::Scripts::Default_Hooks.new @ip, @config, action, self end |
Instance Method Details
#action ⇒ Object
25 26 27 |
# File 'lib/dployr/commands/provision_test.rb', line 25 def action @ip end |