ruby_fly 0.29.0 → 0.30.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ruby_fly/commands/base.rb +12 -6
- data/lib/ruby_fly/commands/status.rb +8 -0
- data/lib/ruby_fly/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bca710e9c88c2053750dca94bb051410bea9babe26527dd3f7df44c82d792386
|
4
|
+
data.tar.gz: cfe6338863de8e277dd352a3e11b37d2588e97a2ea80c2b1948c1d25effedebe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ade5f96c8f50bbbfa924305b368cec5505cef8dc17c771265ed5fa6947ac5ff93884f399bb4366961f30acae4f49b9479769b9c3eda019746b9843331fd219fe
|
7
|
+
data.tar.gz: b20e59f0caeb4bc98a4430ca289349d27fa5b5a037f9c44bf796bb62ad1af16fb7d94e112d8b70c9b6bdf5b1e410e22bbf5d511a5f6abb748a9d2e357b0cf638
|
data/Gemfile.lock
CHANGED
@@ -16,12 +16,14 @@ module RubyFly
|
|
16
16
|
builder = instantiate_builder
|
17
17
|
|
18
18
|
do_before(opts)
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
do_around(opts) do |new_opts|
|
20
|
+
configure_command(builder, new_opts)
|
21
|
+
.build
|
22
|
+
.execute(
|
23
|
+
stdin: stdin,
|
24
|
+
stdout: stdout,
|
25
|
+
stderr: stderr)
|
26
|
+
end
|
25
27
|
do_after(opts)
|
26
28
|
end
|
27
29
|
|
@@ -34,6 +36,10 @@ module RubyFly
|
|
34
36
|
def do_before(opts)
|
35
37
|
end
|
36
38
|
|
39
|
+
def do_around(opts, &block)
|
40
|
+
block.call(opts)
|
41
|
+
end
|
42
|
+
|
37
43
|
def configure_command(builder, opts)
|
38
44
|
builder
|
39
45
|
end
|
@@ -38,6 +38,14 @@ module RubyFly
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
+
def do_around(opts, &block)
|
42
|
+
begin
|
43
|
+
block.call(opts)
|
44
|
+
rescue Open4::SpawnError => e
|
45
|
+
raise e unless e.status.exitstatus == 1
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
41
49
|
def do_after(opts)
|
42
50
|
output = stdout.string
|
43
51
|
error = stderr.string
|
data/lib/ruby_fly/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_fly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.30.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toby Clemson
|
@@ -207,9 +207,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: '2.6'
|
208
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
209
|
requirements:
|
210
|
-
- - "
|
210
|
+
- - ">"
|
211
211
|
- !ruby/object:Gem::Version
|
212
|
-
version:
|
212
|
+
version: 1.3.1
|
213
213
|
requirements: []
|
214
214
|
rubygems_version: 3.0.1
|
215
215
|
signing_key:
|