Module: Xanthus
- Defined in:
- lib/xanthus.rb,
lib/xanthus/job.rb,
lib/xanthus/init.rb,
lib/xanthus/github.rb,
lib/xanthus/script.rb,
lib/xanthus/default.rb,
lib/xanthus/version.rb,
lib/xanthus/dataverse.rb,
lib/xanthus/repository.rb,
lib/xanthus/configuration.rb,
lib/xanthus/virtual_machine.rb
Defined Under Namespace
Classes: Configuration, Dataverse, Error, GitHub, Init, Job, Repository, Script, VirtualMachine
Constant Summary
collapse
- CAMFLOW_START =
%q{%{
camflow -a true
sleep 1
}}
- CAMFLOW_STOP =
%q{%{
camflow -a false
sleep 20
}}
- SPADE_START =
%q{%{
echo spade | sudo -H -u spade ../SPADE/bin/spade start
sleep 20
}}
- SPADE_STOP =
%q{%{
echo spade | sudo -H -u spade ../SPADE/bin/spade stop
sleep 20
}}
- VERSION =
"0.2.5"
Class Method Summary
collapse
Class Method Details
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
|
# File 'lib/xanthus/configuration.rb', line 73
def self.configure
config = Configuration.new
yield(config)
puts "Running experiment #{config.name} with seed #{config.seed}."
srand config.seed
config.vms.each do |k, v|
v.generate_box config
end
config.github_conf.init(config) unless config.github_conf.nil?
config.dataverse_conf.init(config) unless config.dataverse_conf.nil?
config.jobs.each do |name, job|
for i in 0..(job.iterations - 1) do
job.execute config, i
end
end
config.github_conf.tag unless config.github_conf.nil?
config.github_conf.clean unless config.github_conf.nil?
end
|
.version ⇒ Object
4
5
6
|
# File 'lib/xanthus/version.rb', line 4
def self.version
puts VERSION
end
|