Class: Bcome::Node::Environment

Inherits:
Base show all
Includes:
EnvironmentSSH
Defined in:
lib/nodes/environment.rb

Instance Attribute Summary

Attributes inherited from Base

#meta_data, #stack_peer

Instance Method Summary collapse

Methods included from EnvironmentSSH

#bastion_ip_address, #bastion_server, #bootstrap_proxy_command, #dynamic_network_lookup?, #execute_cmd, #execute_command, #execute_scp_download, #execute_scp_upload, #network_lookup, #network_lookup_type, #proxy, #proxy_command, #ssh_key_path, #ssh_mode_type, #ssh_mode_user, #ssh_nat_user, #ssh_user, #valid_ssh_modes

Methods inherited from Base

#initialize, #interactive, #method_missing, #run, #set_parent_reference, #set_stack_peer

Methods included from CommandHelper

#run_local

Constructor Details

This class inherits a constructor from Bcome::Node::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bcome::Node::Base

Instance Method Details

#bootstrap_settingsObject



17
18
19
# File 'lib/nodes/environment.rb', line 17

def bootstrap_settings
  @bootstrap_settings
end

#identifierObject



13
14
15
# File 'lib/nodes/environment.rb', line 13

def identifier
  @environment
end

#machinesObject



6
7
8
9
10
11
# File 'lib/nodes/environment.rb', line 6

def machines
  if instances.empty?
    stack_peer.do_load_resources
  end
  instances
end

#namespaceObject



21
22
23
# File 'lib/nodes/environment.rb', line 21

def namespace
  "#{platform.namespace}/#{identifier}"
end

#set_instances(loaded_resources) ⇒ Object



25
26
27
# File 'lib/nodes/environment.rb', line 25

def set_instances(loaded_resources)
  @instances = loaded_resources.collect(&:node)
end