thanthus 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f7ea5694e8673e5182d6f701d2e2aa246f9736bdd61abcf496713d6647c4a03c
4
- data.tar.gz: 963ea97d58469d033524f336f474b5ff31f1092fa65deee064e638155b36246b
3
+ metadata.gz: 6e2978fd06ea8a6be673740a99c7a623abc4d659a28cc981ab700da31f0047f1
4
+ data.tar.gz: 1ef4708c498b3d3eae9c2b816511905475afb8ab5c7809e231fd00c18c745ed4
5
5
  SHA512:
6
- metadata.gz: 5f932d46868fab1463e8dc76758b5b7d62d42deebb5dea02119f9bfb474dbb3a0476978fda2c883e6c1ce6e8a8fbb209cc6fca3e86254acf53818cb2884a65ef
7
- data.tar.gz: b059fd8ae45d1b9c28d6945dbeed360bb4f1f5c4435d2adc957a4075766ebbd2ab4d9cf6fece3ca74fff28ef4969a9ce7d1dd2d21d606158cbaa32548498fbb3
6
+ metadata.gz: e82a08137a79a90d5b17335c21770d4c6edfdcadb52f725958aa4debff5b21eba7e7f4699dd0a00eed3c1e9adc4891fa81c84ec304f96ee5b0f568f7ea15ed5c
7
+ data.tar.gz: bfb8236e21fc786dcc4ff7b0fac3e8d3d965549469d25a314202bb82e7ea31ec506147430d54fee8596748bb3e0619d2ca5178f0429cec9cc78d766cee73ed37
@@ -5,6 +5,7 @@ module Xanthus
5
5
  attr_accessor :affiliation
6
6
  attr_accessor :email
7
7
  attr_accessor :description
8
+ attr_accessor :share_folder
8
9
  attr_accessor :seed
9
10
  attr_accessor :params
10
11
  attr_accessor :vms
@@ -14,6 +15,7 @@ module Xanthus
14
15
  attr_accessor :dataverse_conf
15
16
 
16
17
  def initialize
18
+ @share_folder = true
17
19
  @params = Hash.new
18
20
  @vms = Hash.new
19
21
  @scripts = Hash.new
@@ -24,6 +26,7 @@ module Xanthus
24
26
  vm = VirtualMachine.new
25
27
  yield(vm)
26
28
  vm.name = name
29
+ vm.share_folder = @share_folder
27
30
  @vms[name] = vm
28
31
  end
29
32
 
@@ -81,14 +84,14 @@ seed: #{@seed}
81
84
  config.dataverse_conf.init(config) unless config.dataverse_conf.nil?
82
85
 
83
86
  # executing jobs
84
- config.jobs.each do |name,job|
85
- for i in 0..(job.iterations-1) do
87
+ config.jobs.each do |name, job|
88
+ for i in 0..(job.iterations - 1) do
86
89
  job.execute config, i
87
90
  end
88
91
  end
89
92
 
90
93
  # finalizing storage backends
91
- config.github_conf.tag unless config.github_conf.nil?
92
- config.github_conf.clean unless config.github_conf.nil?
94
+ config.github_conf.tag unless config.github_conf.nil?
95
+ config.github_conf.clean unless config.github_conf.nil?
93
96
  end
94
97
  end
@@ -1,5 +1,5 @@
1
1
  module Xanthus
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
 
4
4
  def self.version
5
5
  puts VERSION
@@ -13,6 +13,7 @@ module Xanthus
13
13
  attr_accessor :boxing
14
14
  attr_accessor :ssh_username
15
15
  attr_accessor :ssh_key_path
16
+ attr_accessor :share_folder
16
17
  attr_accessor :on_aws
17
18
  attr_accessor :aws_env_key_id
18
19
  attr_accessor :aws_env_key_secret
@@ -31,6 +32,7 @@ module Xanthus
31
32
  @cpus = 2
32
33
  @cpu_cap = 70
33
34
  @gui = false
35
+ @share_folder = true
34
36
  @boxing = nil
35
37
  @ssh_username = nil
36
38
  @ssh_key_path = nil
@@ -49,8 +51,8 @@ if Vagrant.has_plugin?("vagrant-vbguest")
49
51
  end
50
52
  }
51
53
  script += %Q{
52
- config.vm.synced_folder ".", "/vagrant", disabled: false, type: 'rsync'
53
- } unless !@on_aws
54
+ config.vm.synced_folder ".", "/vagrant", disabled: #{!@share_folder}, type: 'rsync'
55
+ }
54
56
  script += %Q{
55
57
  config.ssh.username = "#{@ssh_username}"
56
58
  } unless ssh_username.nil?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thanthus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Pasquier
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-01-14 00:00:00.000000000 Z
13
+ date: 2021-01-22 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json