Class: Wombat::OutputRunner

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/wombat/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#audio?, #azure_provider_tag, #banner, #bootstrap_aws, #build_nodes, #calculate_templates, #conf, #connect_azure, #create_infranodes_json, #create_resource_group, #deployment_state, #duration, #follow_azure_deployment, #info, #infranodes, #is_mac?, #is_valid_json?, #linux, #list_outstanding_deployment_operations, #lock, #logs, #parse_log, #update_lock, #update_template, #warn, #wombat, #workstations

Constructor Details

#initialize(opts) ⇒ OutputRunner

Returns a new instance of OutputRunner.



12
13
14
15
# File 'lib/wombat/output.rb', line 12

def initialize(opts)
  @stack = opts.stack
  @cloud = opts.cloud.nil? ? "aws" : opts.cloud
end

Instance Attribute Details

#cloudObject (readonly)

Returns the value of attribute cloud.



9
10
11
# File 'lib/wombat/output.rb', line 9

def cloud
  @cloud
end

#network_management_clientObject

Returns the value of attribute network_management_client.



10
11
12
# File 'lib/wombat/output.rb', line 10

def network_management_client
  @network_management_client
end

#stackObject (readonly)

Returns the value of attribute stack.



9
10
11
# File 'lib/wombat/output.rb', line 9

def stack
  @stack
end

Instance Method Details

#startObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/wombat/output.rb', line 17

def start

  # Get the IP addresses for the workstations
  case cloud
  when "aws"
    cfn_workstation_ips(stack)
  when "azure"
    azure_workstation_ips(stack)
  end
end