xanthus 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/xanthus +1 -1
- data/lib/xanthus/job.rb +4 -1
- data/lib/xanthus/version.rb +1 -1
- data/lib/xanthus/virtual_machine.rb +5 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 66257493ff2d3fe1d22a7ca0706fdf65ee3bb61d7546ed5d63372dab6b5e603a
|
|
4
|
+
data.tar.gz: fd7b4332a60cb729740443a33edbfc199ac971d5b928ae67d500b85bcbb34e51
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a1d94ad4ee1548a22e23106d0fc3728d6595794f1f7e05ad86a831aa97547921a08c33be44e9d95688dbae5d234cd0a936f1ed65e5ed8f1e173fb7b41a03d05c
|
|
7
|
+
data.tar.gz: 4437c5b2b627079279b1c08655b22ec6009dd7b3d96300e2bccd38161873d0fe8d37547cf90e2f635ca6f788e0475ff360214c9d706263a7003126dc05ba405e
|
data/bin/xanthus
CHANGED
data/lib/xanthus/job.rb
CHANGED
|
@@ -42,10 +42,13 @@ module Xanthus
|
|
|
42
42
|
f.write(config.vms[machine].to_vagrant)
|
|
43
43
|
end
|
|
44
44
|
script = Script.new(scripts, config).to_s
|
|
45
|
-
script += self.output_script(@outputs[machine]) unless @outputs[machine].nil?
|
|
46
45
|
File.open('provision.sh', 'w+') do |f|
|
|
47
46
|
f.write(script)
|
|
48
47
|
end
|
|
48
|
+
script = self.output_script(@outputs[machine]) unless @outputs[machine].nil?
|
|
49
|
+
File.open('before_halt.sh', 'w+') do |f|
|
|
50
|
+
f.write(script)
|
|
51
|
+
end
|
|
49
52
|
end
|
|
50
53
|
end
|
|
51
54
|
|
data/lib/xanthus/version.rb
CHANGED
|
@@ -48,6 +48,11 @@ script += %Q{
|
|
|
48
48
|
vb.name = "#{@name}"
|
|
49
49
|
end
|
|
50
50
|
config.vm.provision "shell", path: "provision.sh"
|
|
51
|
+
|
|
52
|
+
config.trigger.before :halt do |trigger|
|
|
53
|
+
trigger.info = "Retrieving data before halt..."
|
|
54
|
+
trigger.run_remote = {path: "before_halt.sh"}
|
|
55
|
+
end
|
|
51
56
|
end
|
|
52
57
|
}
|
|
53
58
|
return script
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xanthus
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thomas Pasquier
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2019-03-
|
|
12
|
+
date: 2019-03-31 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|