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 +4 -4
- data/lib/kapost/bootstrapper.rb +6 -7
- data/lib/kapost/bootstrapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b760f6d6f5a68c112f2dc8307a0712a7e577df2d
|
4
|
+
data.tar.gz: f91b96b9c5d4a34a45d18c06a24bef235b1e70af
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b1fa0f1105a72b766f35cbf46eb2fadf59f6d0e601807ae8268fb950ea1456cdb17c50c5edc45b0c66896e824e79ffe4d0d8977a244394680831ef4a9676286
|
7
|
+
data.tar.gz: 8186b0298b82601d17485ac351ebe79962211d85238e4275b74ffd44a71cb3c7e54a0af71011341a15fc4c3af33c440c9b794bccecacd1c3f5511df552379fb0
|
data/lib/kapost/bootstrapper.rb
CHANGED
@@ -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
|
-
|
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)
|