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

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, #method_missing, #run, #set_parent_reference

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



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

def bootstrap_settings
  @bootstrap_settings
end

#identifierObject



10
11
12
# File 'lib/nodes/environment.rb', line 10

def identifier
  @environment
end

#machinesObject



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

def machines
  instances
end

#namespaceObject



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

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