Class: Bcome::Node::Environment
Instance Attribute Summary
Attributes inherited from Base
#meta_data, #stack_peer
Instance Method Summary
collapse
#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
#run_local
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Bcome::Node::Base
Instance Method Details
#bootstrap_settings ⇒ Object
17
18
19
|
# File 'lib/nodes/environment.rb', line 17
def bootstrap_settings
@bootstrap_settings
end
|
#identifier ⇒ Object
13
14
15
|
# File 'lib/nodes/environment.rb', line 13
def identifier
@environment
end
|
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
|
#namespace ⇒ Object
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
|