module Xanthus

Constants

CAMFLOW_START
CAMFLOW_STOP
SPADE_START
SPADE_STOP
VERSION

Public Class Methods

configure() { |config| ... } click to toggle source
# File lib/xanthus/configuration.rb, line 70
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

  # initializing storage backends
  config.github_conf.init(config) unless config.github_conf.nil?
  config.dataverse_conf.init(config) unless config.dataverse_conf.nil?

  # executing jobs
  config.jobs.each do |name,job|
    for i in 0..(job.iterations-1) do
      job.execute config, i
    end
  end

  # finalizing storage backends
  config.github_conf.tag  unless config.github_conf.nil?
  config.github_conf.clean  unless config.github_conf.nil?
end
version() click to toggle source
# File lib/xanthus/version.rb, line 4
def self.version
  puts VERSION
end