class Xanthus::Configuration

Attributes

affiliation[RW]
authors[RW]
dataverse_conf[RW]
description[RW]
email[RW]
github_conf[RW]
jobs[RW]
name[RW]
params[RW]
scripts[RW]
seed[RW]
share_folder[RW]
vms[RW]

Public Class Methods

new() click to toggle source
# File lib/xanthus/configuration.rb, line 17
def initialize
  @share_folder = true
  @params = Hash.new
  @vms = Hash.new
  @scripts = Hash.new
  @jobs = Hash.new
end

Public Instance Methods

dataverse() { |dataverse| ... } click to toggle source
# File lib/xanthus/configuration.rb, line 50
def dataverse
  dataverse = Dataverse.new
  yield(dataverse)
  @dataverse_conf = dataverse
end
github() { |github| ... } click to toggle source
# File lib/xanthus/configuration.rb, line 44
def github
  github = GitHub.new
  yield(github)
  @github_conf = github
end
job(name) { |v| ... } click to toggle source
# File lib/xanthus/configuration.rb, line 37
def job name
  v = Job.new
  yield(v)
  v.name = name
  @jobs[name] = v
end
script(name) { || ... } click to toggle source
# File lib/xanthus/configuration.rb, line 33
def script name
  @scripts[name] = yield
end
to_readme_md() click to toggle source
# File lib/xanthus/configuration.rb, line 56
    def to_readme_md
      %Q{
# #{@name}

authors: #{@authors}
affiliation: #{@affiliation}
email: #{@email}

seed: #{@seed}

## Description

#{@description}
      }
    end
vm(name) { |vm| ... } click to toggle source
# File lib/xanthus/configuration.rb, line 25
def vm name
  vm = VirtualMachine.new
  yield(vm)
  vm.name = name
  vm.share_folder = @share_folder
  @vms[name] = vm
end