xanthus 0.1.1 → 0.1.2

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: 0dd4bd2fb0748781719afb249fdf84fb6fe80c38717b7b897c1885ef5d6661a2
4
- data.tar.gz: 13a198e8768ce0b75c2edbeea4c4f74ed493f3a0aba30b2a1632c8b0d7b7d1fa
3
+ metadata.gz: c4832454eeff21b2bf3013e37d38adaf16c2e3b1e71ec902361cba7b25e63be5
4
+ data.tar.gz: be923875ac163b8d946f36623b0751436d67b0332d1a76880213f9f9470567cb
5
5
  SHA512:
6
- metadata.gz: 9b62820b6af9adc16bffdf9a0ff7074bcddd19517235cbdf71d0de8ae922df580cbfa653490e2da2f99e5222a79edefd930a423472405a7a081b31b1c4cad4b3
7
- data.tar.gz: 3e6d5fc932a6007e94d5fa0b7d01e32b1e1a8f6818fbcbbe6650e60e751c19f6d189cc6458604ad92ead58b233bffce0b4351ec5a857a87a836fbd5dc2534dd0
6
+ metadata.gz: ea5ba69726815f5156300bae089e4b996cd724752089656288c039649d917f2c215ff8e9cdd3e499ccc2c09dc01784094838dea0d3b2118d7c7928014a4f0fa9
7
+ data.tar.gz: 76cb3e1fcdafecb9f4f1fcfe514ea8cebc50e30b0af28e55130cc10eb2980734c29ded9491fb6a212a69ad86d3e1858cbe584e6e98272b3398986ee4b8d96aad
data/lib/xanthus/job.rb CHANGED
@@ -12,6 +12,7 @@ module Xanthus
12
12
  @iterations = 0
13
13
  @tasks = Hash.new
14
14
  @outputs = Hash.new
15
+ @inputs = Hash.new
15
16
  end
16
17
 
17
18
  def output_script outputs
@@ -46,8 +47,10 @@ module Xanthus
46
47
 
47
48
  FileUtils.mkdir_p machine.to_s
48
49
  Dir.chdir machine.to_s do
49
- @inputs[machine].each do |name|
50
- system('cp', '-f', "../../#{name}", "#{name}")
50
+ if !@inputs[machine].nil?
51
+ @inputs[machine].each do |name|
52
+ system('cp', '-f', "../../#{name}", "#{name}")
53
+ end
51
54
  end
52
55
  FileUtils.mkdir_p 'output'
53
56
  puts 'Creating provision files...'
@@ -1,5 +1,5 @@
1
1
  module Xanthus
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
 
4
4
  def self.version
5
5
  puts VERSION
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.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Pasquier