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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5f8fd0386eb27f0d85e1629ab9aa84e07a977df4
4
- data.tar.gz: ed3435c966ac47e8082afad5ff0a5c3e43a644b1
3
+ metadata.gz: 723b884782e4c4e3d9693517be658ddae7e4327c
4
+ data.tar.gz: 24e592e593bd399d5ec465ac26018877aee91414
5
5
  SHA512:
6
- metadata.gz: 492d068d07d0d1567eba554c88ca5e1ef74c01c739ece206ab3de3802776a509fe7a35c024f7a49142cd8c6a81f7ffee8bb15a369e71dab87b8d33ad1b3fac1f
7
- data.tar.gz: c89648c64a8e2cff992b82961165a65a261761226e92ec35ae5fe90eaafd490c09b044f0041d925f03bce80dd794faefcf2b06bdc9035918394ee90482d9a16a
6
+ metadata.gz: e074858bc80906c2f1ed5d3707603a6371a9b9687f967af192b73e34f3e4aa7ffddd784a79c4780db749618ea1a09a4c5379b8f008bab4e2dd8e3e16942ae154
7
+ data.tar.gz: 8f6a28f2c37a83a722d171ec1eed9c7fcc647c347970a6e77d5f4ac0fb0d0dd94a8f3cfcdd42b559f0bc476889052279807314da695ac01455b112d26c1bf23a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- leeroy_app (0.3.1)
4
+ leeroy_app (0.4.0)
5
5
  awesome_print (~> 1.6)
6
6
  aws-sdk (~> 2)
7
7
  chronic (~> 0.10)
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|
@@ -26,8 +26,12 @@ module Leeroy
26
26
 
27
27
  @env = Leeroy::Env.new({}, params.fetch(:env, ENV))
28
28
 
29
- @state = Leeroy::State.new(state_from_pipe(params.fetch(:state, {})))
30
- rotate_task_metadata
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
@@ -1,3 +1,3 @@
1
1
  module Leeroy
2
- VERSION = "0.3.1"
2
+ VERSION = "0.4.0"
3
3
  end
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.3.1
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-25 00:00:00.000000000 Z
11
+ date: 2016-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba