awful 0.0.72 → 0.0.73

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: 652eff8eaca66cd291cd19e02f272c910d0a06a9
4
- data.tar.gz: 7510d7d64666cd742609cdd0b63d81665971678c
3
+ metadata.gz: b14e6a539be6ccdb56556f5b511a82af7295ce31
4
+ data.tar.gz: c4bee06767aea50a5efed77e8b9a32997da929db
5
5
  SHA512:
6
- metadata.gz: e00b0049226d5881af8d25739877b81c787a62a8250f561962f760896103c2f5e4297c9f562c6780ad69e06eb2ad3331531f235786c904715ba36b0ff8cad521
7
- data.tar.gz: 1d7d0e6100b097bb2fd6529305bf169670719013ed8820028565daaf97467a2c5046ba5f37048e9e05ba334c5af9bf167cce7fe0252bae349f7e672fd9c69e4e
6
+ metadata.gz: 917fa172ee3f044d15884fdb2eabcf8960d1ae0c9dd0ac803c46ff7746d5f4dfafa19b774e836370fa5f9b5401f7d03bbd3d5fb731074f1cd2f4130fe87990d1
7
+ data.tar.gz: 5ba47da606acb2aaf637897624c83e33a6ae3b8ac0d20eebdf24fe8cbf70881cbf04f904e5937e0dede8689b83ad0c869956dc999ae610282f8c62b6bda497e8
@@ -149,8 +149,9 @@ module Awful
149
149
  end
150
150
 
151
151
  desc 'policy NAME [JSON]', 'get policy for stack NAME, or set from JSON file or stdin'
152
+ method_option :json, aliases: '-j', type: :string, default: nil, desc: 'Inline policy as json string'
152
153
  def policy(name, file = nil)
153
- policy = file_or_stdin(file)
154
+ policy = options[:json].nil? ? file_or_stdin(file) : options[:json]
154
155
  if policy
155
156
  cf.set_stack_policy(stack_name: name, stack_policy_body: policy)
156
157
  else
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = '0.0.72'
2
+ VERSION = '0.0.73'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.72
4
+ version: 0.0.73
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-31 00:00:00.000000000 Z
11
+ date: 2016-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler