aws-sdk-utils 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/cfndsl_converge +18 -0
  3. data/bin/yaml_get +8 -0
  4. metadata +20 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb5eabb9468ec7846c03e1aad6fde58961c664c8
4
- data.tar.gz: 700ce35e176f8f0269cc90375a4f62a6857fc090
3
+ metadata.gz: cd63040fe954adff72101373ea6976cf5344a14a
4
+ data.tar.gz: 58dc77c2acf00dd5a5751998666b7f147ab5dd1e
5
5
  SHA512:
6
- metadata.gz: 8a715354936be3baef9ec97d472325145d08a0f89cd38fe0e3bcabb442dd5db80076993280ae8225bb88be9c38595c76b2ed47233074a050dc41fae09c36c7df
7
- data.tar.gz: 0efd49dd7d5682d19f5e9f5aa072a8a8c27e4c89b36c72cb60e547de47b1aa2f27aec591884003876c33f46a5c1dea28ac49e29fe46093472d0584d0afff1751
6
+ metadata.gz: 8b6c27bece1ac6dd0803699e83983e6b9e2006e2509f6c170f10eff6f9b07e077d9e8a6370f0fee0169c699433fae178a3390e9c2d113ff7623873ce8dcb84e1
7
+ data.tar.gz: 652018550f25932a05c904907be5977f070c9c5dd0a66abb1866f872f6afbdbaa94e5b7a93faaabdd5a2cc89f6ddbf1ae13f2cfc42f39524e2637efcc31b2226
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+ require 'trollop'
3
+ require 'cfndsl_converger'
4
+ require 'yaml'
5
+
6
+ opts = Trollop::options do
7
+ opt :path_to_stack, '', type: :string, required: true
8
+ opt :stack_name, '', type: :string, required: true
9
+ opt :path_to_yaml, '', type: :string, required: false
10
+ end
11
+
12
+ bindings = opts[:path_to_yaml].nil? ? nil : YAML.load_file(opts[:path_to_yaml])
13
+
14
+ outputs = CfndslConverger.new.converge(stack_name: opts[:stack_name],
15
+ path_to_stack: opts[:path_to_stack],
16
+ bindings: bindings)
17
+
18
+ puts outputs.to_yaml
data/bin/yaml_get ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+ require 'yaml'
3
+
4
+ yaml_file = ARGV[0]
5
+ key = ARGV[1]
6
+
7
+ yaml = YAML.load_file(yaml_file)
8
+ puts yaml[key]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - someguy
@@ -38,12 +38,30 @@ dependencies:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 0.4.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: trollop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '='
46
+ - !ruby/object:Gem::Version
47
+ version: 2.1.2
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '='
53
+ - !ruby/object:Gem::Version
54
+ version: 2.1.2
41
55
  description: Low level utilities for dealing with AWS SDK
42
56
  email:
43
- executables: []
57
+ executables:
58
+ - cfndsl_converge
59
+ - yaml_get
44
60
  extensions: []
45
61
  extra_rdoc_files: []
46
62
  files:
63
+ - bin/cfndsl_converge
64
+ - bin/yaml_get
47
65
  - lib/aws-sdk-utils.rb
48
66
  - lib/cfndsl_converger.rb
49
67
  - lib/cloudformation_converger.rb