leeroy_app 0.3.1 → 0.4.0
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/leeroy/app.rb +4 -0
- data/lib/leeroy/task/base.rb +6 -2
- data/lib/leeroy/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 723b884782e4c4e3d9693517be658ddae7e4327c
|
4
|
+
data.tar.gz: 24e592e593bd399d5ec465ac26018877aee91414
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e074858bc80906c2f1ed5d3707603a6371a9b9687f967af192b73e34f3e4aa7ffddd784a79c4780db749618ea1a09a4c5379b8f008bab4e2dd8e3e16942ae154
|
7
|
+
data.tar.gz: 8f6a28f2c37a83a722d171ec1eed9c7fcc647c347970a6e77d5f4ac0fb0d0dd94a8f3cfcdd42b559f0bc476889052279807314da695ac01455b112d26c1bf23a
|
data/Gemfile.lock
CHANGED
data/lib/leeroy/app.rb
CHANGED
@@ -27,6 +27,10 @@ module Leeroy
|
|
27
27
|
desc "Perform the requested task (pass '--no-op' for testing)."
|
28
28
|
switch [:op], :default_value => true
|
29
29
|
|
30
|
+
desc "Control reading of state from stdin (pass '--no-stdin' to force disable)."
|
31
|
+
switch [:stdin], :default_value => true
|
32
|
+
|
33
|
+
# commands
|
30
34
|
desc 'Displays the version of leeroy and exits.'
|
31
35
|
command :version do |c|
|
32
36
|
c.action do |global_options,options,args|
|
data/lib/leeroy/task/base.rb
CHANGED
@@ -26,8 +26,12 @@ module Leeroy
|
|
26
26
|
|
27
27
|
@env = Leeroy::Env.new({}, params.fetch(:env, ENV))
|
28
28
|
|
29
|
-
|
30
|
-
|
29
|
+
if self.global_options.fetch(:stdin, true)
|
30
|
+
@state = Leeroy::State.new(state_from_pipe(params.fetch(:state, {})))
|
31
|
+
rotate_task_metadata
|
32
|
+
else
|
33
|
+
@state = Leeroy::State.new
|
34
|
+
end
|
31
35
|
|
32
36
|
rescue StandardError => e
|
33
37
|
raise e
|
data/lib/leeroy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leeroy_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Huff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|