kapost-bootstrapper 0.5.1 → 0.5.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
  SHA1:
3
- metadata.gz: 7bbdfc50dfe2de74b812a50bb6258856d68116d5
4
- data.tar.gz: 5bc52349f47dbb10611ed3783076130938119d86
3
+ metadata.gz: b760f6d6f5a68c112f2dc8307a0712a7e577df2d
4
+ data.tar.gz: f91b96b9c5d4a34a45d18c06a24bef235b1e70af
5
5
  SHA512:
6
- metadata.gz: 57280b925aea7f4e276c1ac2621efd6715e8a8bc1e4589900a7b90bb3a54352c706435a689e097e54dd781869d4445c78628b0323d402d86f2345da741b448c2
7
- data.tar.gz: 5f198e76bf08abfafb25f13840cc5878dfa3c37d3b189ed9210be4a517c07fac346f7ad3336ff7b0ce67f82b8ef0d6e40ce5b653dd249bfe9ddd8982aba6b1e5
6
+ metadata.gz: 8b1fa0f1105a72b766f35cbf46eb2fadf59f6d0e601807ae8268fb950ea1456cdb17c50c5edc45b0c66896e824e79ffe4d0d8977a244394680831ef4a9676286
7
+ data.tar.gz: 8186b0298b82601d17485ac351ebe79962211d85238e4275b74ffd44a71cb3c7e54a0af71011341a15fc4c3af33c440c9b794bccecacd1c3f5511df552379fb0
@@ -63,13 +63,12 @@ module Kapost
63
63
  def check(command, help = nil, version: nil)
64
64
  say(label(command, version)) do
65
65
  begin
66
- block_given? ? yield : default_check(command, version)
67
- true
66
+ result = block_given? ? yield : default_check(command, version)
67
+ @platform_result || result
68
68
  rescue CommandError => ex
69
69
  die help, exception: ex
70
70
  end
71
- end
72
- true
71
+ end or die(help)
73
72
  end
74
73
 
75
74
  def check_bundler
@@ -123,15 +122,15 @@ module Kapost
123
122
  end
124
123
 
125
124
  def osx(&block)
126
- run(&block) if os == :macosx
125
+ @platform_result = run(&block) if os == :macosx
127
126
  end
128
127
 
129
128
  def docker(&block)
130
- run(&block) if os == :docker
129
+ @platform_result = run(&block) if os == :docker
131
130
  end
132
131
 
133
132
  def ubuntu(&block)
134
- run(&block) if os == :ubuntu
133
+ @platform_result = run(&block) if os == :ubuntu
135
134
  end
136
135
 
137
136
  def run(&code)
@@ -1,5 +1,5 @@
1
1
  module Kapost
2
2
  class Bootstrapper
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kapost-bootstrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Sadauskas