Module: PoolParty::Remote
Defined Under Namespace
Modules: Remoter, RemoterBase, RemoterBaseMethods
Classes: RemoteInstance
Instance Method Summary
collapse
Methods included from Remoter
#can_shutdown_an_instance?, #can_start_a_new_instance?, #contract_cloud_if_necessary, #expand_cloud_if_necessary, #get_remote_nodes, #get_working_listing_file, included, #launch_minimum_number_of_instances, #list_from_local, #list_from_remote, #list_of_node_ips, #list_of_node_names, #local_instances_list_file_locations, #maximum_number_of_instances_are_not_running?, #minimum_number_of_instances_are_running?, #request_launch_new_instances, #request_launch_one_instance_at_a_time, #request_termination_of_non_master_instance, #rsync_command, #rsync_storage_files_to, #rsync_storage_files_to_command, #run_command_on, #run_command_on_command, #should_contract_cloud?, #should_expand_cloud?, #ssh_array, #ssh_command, #ssh_into, #ssh_into_instance_number, #ssh_string, #when_no_pending_instances
Instance Method Details
#available_bases ⇒ Object
26
27
28
|
# File 'lib/poolparty/net/remote.rb', line 26
def available_bases
remote_bases
end
|
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# File 'lib/poolparty/net/remote.rb', line 9
def using(t)
if available_bases.include?(t.to_sym)
unless using_remoter? || t.nil?
self.class.send :attr_reader, :remote_base
mod = "#{t}".preserved_module_constant
mod.send :include, PoolParty::Remote::RemoterBase
self.class.send :include, mod
self.extend mod
@remote_base = "#{t}".preserved_module_constant
end
else
puts "Unknown remote base"
end
end
|
#using_remoter? ⇒ Boolean
30
31
32
|
# File 'lib/poolparty/net/remote.rb', line 30
def using_remoter?
@remote_base ||= nil
end
|