Module: Xanthus

Defined in:
lib/xanthus.rb,
lib/xanthus/job.rb,
lib/xanthus/init.rb,
lib/xanthus/github.rb,
lib/xanthus/default.rb,
lib/xanthus/version.rb,
lib/xanthus/configuration.rb,
lib/xanthus/virtual_machine.rb

Defined Under Namespace

Classes: Configuration, Error, GitHub, Init, Job, 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.1.1"

Class Method Summary collapse

Class Method Details

.configure {|config| ... } ⇒ Object

Yields:

  • (config)


59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/xanthus/configuration.rb', line 59

def self.configure
  config = Configuration.new
  yield(config)
  puts "Running experiment #{config.name} with seed #{config.seed}."
  srand config.seed
  config.github_conf.init(config) unless config.github_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

.versionObject



4
5
6
# File 'lib/xanthus/version.rb', line 4

def self.version
  puts VERSION
end