specinfra 2.0.0.beta22 → 2.0.0.beta23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af4a68d6d01873c8664f1c83ac8f7c289e75e464
4
- data.tar.gz: 16d14837e40deafac88963b220a574d79e848b6f
3
+ metadata.gz: 30e5563459eccf2fd3b164a49140aa965dc5eaa4
4
+ data.tar.gz: 5701805fa1e3c448ba4c00c656fefd8deb60d658
5
5
  SHA512:
6
- metadata.gz: e39f5729523c1c5471ead0d6329f39bcdcff400a2e3a7afbcc05a39801f7d4615aaf217d479b512cdd6622af7be37dccbe659fa4bde8e4f9191990c25b690f48
7
- data.tar.gz: 396d4ceb881da5e204228bdb5340d1e32a51719ea7c9789269ab257889ba53128505aa8fe8ea0a0a57b13412df957ef881b13c283946476459224f4cc75471d7
6
+ metadata.gz: 6970820c76d47fb28c76ba7a543f02b08fff1a6df365d6c0f5055273f2f209f3ad7e40ec99ff6fa715bc951e499438314f7b85199f8d12286688f3c43f70e6f4
7
+ data.tar.gz: de50164311e3649be7f2adf55ab4513aeb199fd1fcee18e59c1ead1785f0b5747a813c409cae64ef4cdf21b718bcd7a23ce46e091d70f730d6a4e9dad10d463f
@@ -21,12 +21,7 @@ module Specinfra
21
21
  end
22
22
 
23
23
  def copy_file(from, to)
24
- begin
25
- @images << current_image.insert_local('localPath' => from, 'outputPath' => to)
26
- rescue ::Docker::Error::DockerError
27
- return false
28
- end
29
- true
24
+ @images << current_image.insert_local('localPath' => from, 'outputPath' => to)
30
25
  end
31
26
 
32
27
  private
@@ -70,12 +70,7 @@ module Specinfra
70
70
  end
71
71
 
72
72
  def copy_file(from, to)
73
- begin
74
- FileUtils.cp(from, to)
75
- rescue => e
76
- return false
77
- end
78
- true
73
+ FileUtils.cp(from, to)
79
74
  end
80
75
  end
81
76
  end
@@ -24,12 +24,7 @@ module Specinfra
24
24
  end
25
25
 
26
26
  def copy_file(from, to)
27
- begin
28
- FileUtils.cp(from, File.join(ct.config_item('lxc.rootfs'), to))
29
- rescue => e
30
- return false
31
- end
32
- true
27
+ FileUtils.cp(from, File.join(ct.config_item('lxc.rootfs'), to))
33
28
  end
34
29
 
35
30
  def ct
@@ -63,12 +63,7 @@ module Specinfra
63
63
  end
64
64
 
65
65
  scp = Specinfra.configuration.scp
66
- begin
67
- scp.upload!(from, to)
68
- rescue => e
69
- return false
70
- end
71
- true
66
+ scp.upload!(from, to)
72
67
  end
73
68
 
74
69
  private
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.0.0.beta22"
2
+ VERSION = "2.0.0.beta23"
3
3
  end
data/wercker.yml CHANGED
@@ -26,6 +26,10 @@ build:
26
26
  name: Run vagrant up centos65
27
27
  code: vagrant up centos65 --provider=digital_ocean
28
28
  cwd: $WORKING_DIR
29
+ - script:
30
+ name: Run itamae
31
+ code: bundle exec ./itamae.rb centos65
32
+ cwd: $WORKING_DIR
29
33
  - script:
30
34
  name: Run vagrant reload centos65
31
35
  code: vagrant reload centos65
@@ -38,6 +42,10 @@ build:
38
42
  name: Run vagrant up centos70
39
43
  code: vagrant up centos70 --provider=digital_ocean
40
44
  cwd: $WORKING_DIR
45
+ - script:
46
+ name: Run itamae
47
+ code: bundle exec ./itamae.rb centos70
48
+ cwd: $WORKING_DIR
41
49
  - script:
42
50
  name: Run vagrant reload centos70
43
51
  code: vagrant reload centos70
@@ -50,6 +58,10 @@ build:
50
58
  name: Run vagrant up ubuntu1404
51
59
  code: vagrant up ubuntu1404 --provider=digital_ocean
52
60
  cwd: $WORKING_DIR
61
+ - script:
62
+ name: Run itamae
63
+ code: bundle exec ./itamae.rb ubuntu1404
64
+ cwd: $WORKING_DIR
53
65
  - script:
54
66
  name: Run vagrant reload ubuntu1404
55
67
  code: vagrant reload ubuntu1404
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta22
4
+ version: 2.0.0.beta23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita