Top Level Namespace
Defined Under Namespace
Classes: CloudProvider, ConcurrentNode, ExecutionNode, Experiment, ForeachNode, MachineManager, Node, OnNode, VirtualMachine
Instance Method Summary
collapse
Instance Method Details
#define_providers(&block) ⇒ Object
58
59
60
|
# File 'lib/remote_execution/provider.rb', line 58
def define_providers (&block)
$vms_manager = MachineManager.new &block
end
|
#experiment(name, &block) ⇒ Object
6
7
8
|
# File 'lib/tree_building/claudius.rb', line 6
def experiment(name, &block)
Experiment.new(name, &block)
end
|
#getInstance(name) ⇒ Object
62
63
64
65
66
67
68
|
# File 'lib/remote_execution/provider.rb', line 62
def getInstance(name)
if ($virtual_machines.has_key?(name))
$virtual_machines[name]
else
raise "No machine #{name} specified"
end
end
|
#load_config(filename) ⇒ Object
52
53
54
55
56
|
# File 'lib/remote_execution/provider.rb', line 52
def load_config( filename )
File.open( filename, 'r' ) { |file_name|
JSON.load(file_name)
}
end
|
#s_ssh(session, commands) ⇒ Object
3
4
5
6
7
8
|
# File 'lib/remote_execution/virtual_machine.rb', line 3
def s_ssh(session, commands)
commands.each do |command|
session.exec(command)
end
session.loop
end
|