cfndsl 0.16.1 → 0.16.2

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
  SHA256:
3
- metadata.gz: d7db076ecbf3976115ced4666cd7aae84da48766537f1b3160b5566cd077a177
4
- data.tar.gz: 5b1d9c64cd21378c2efd36079153b16a7a5e74906627e91be9d0a3b103e2176a
3
+ metadata.gz: ada6bc0f4f3501974e843197f7566aefa9568735b87a4bf666a1d28e7d4585a1
4
+ data.tar.gz: c493f6da406cee7b39ad37d8baa27fdb36eedcb604fa2090fbfe4e6dd4724112
5
5
  SHA512:
6
- metadata.gz: f8a743c09cdae1c756f964486984c433bbb017e90f585242df83f5606b1cd5134251204237cfefab4144d2ebc5f343d492eb9facbfc081cd1a1f1e1879805974
7
- data.tar.gz: ca4336ca2cd4bdca4ee2b6b64b94c3a399d936224fa16922e15b909f8f604f0f260c0b569c58b98ade410a05c8b27658973adc2664fd32298b9dd5d42a4a9108
6
+ metadata.gz: 49303f6b20c5aa260473bc631cc661a0ea0552df6e2232cdedca52cb5e77ff1cf66906b080ff6ee94f90ada4a1bcdf3ea0dc7ca56b9c5d05bf8f6f271038bd60
7
+ data.tar.gz: de6d8e43c775700c64f56d70a5473ea0d05a6a3f715f027dcba4ff6f932ccb4adb6d80d93d3da9abdfffe57bcc3bd54f19a49196b31047d02a9028700584a734
@@ -1,7 +1,18 @@
1
1
  # Change Log
2
2
 
3
- ## [0.16.1](https://github.com/cfndsl/cfndsl/tree/0.16.1) (2017-12-02)
4
- [Full Changelog](https://github.com/cfndsl/cfndsl/compare/v0.16.0...0.16.1)
3
+ ## [0.16.2](https://github.com/cfndsl/cfndsl/tree/0.16.2) (2017-12-08)
4
+ [Full Changelog](https://github.com/cfndsl/cfndsl/compare/v0.16.1...0.16.2)
5
+
6
+ **Closed issues:**
7
+
8
+ - Code Deploy - missing settings [\#358](https://github.com/cfndsl/cfndsl/issues/358)
9
+
10
+ **Merged pull requests:**
11
+
12
+ - add option to print version. Fixes \#358 [\#359](https://github.com/cfndsl/cfndsl/pull/359) ([gergnz](https://github.com/gergnz))
13
+
14
+ ## [v0.16.1](https://github.com/cfndsl/cfndsl/tree/v0.16.1) (2017-12-02)
15
+ [Full Changelog](https://github.com/cfndsl/cfndsl/compare/v0.16.0...v0.16.1)
5
16
 
6
17
  **Closed issues:**
7
18
 
data/bin/cfndsl CHANGED
@@ -72,6 +72,10 @@ optparse = OptionParser.new do |opts|
72
72
  options[:resources] << r
73
73
  end
74
74
 
75
+ opts.on('-a', '--assetversion', 'Print out the specification version') do
76
+ options[:assetversion] = true
77
+ end
78
+
75
79
  opts.on('-l', '--list', 'List supported resources') do
76
80
  puts Cfnlego.Resources.sort
77
81
  exit
@@ -95,13 +99,18 @@ if options[:update_spec]
95
99
  STDERR.puts "Specification successfully written to #{CfnDsl.specification_file}"
96
100
  end
97
101
 
102
+ if options[:assetversion]
103
+ spec_file = JSON.parse File.read(CfnDsl.specification_file)
104
+ STDERR.puts spec_file['ResourceSpecificationVersion']
105
+ end
106
+
98
107
  if options[:lego]
99
108
  puts Cfnlego.run(options)
100
109
  exit
101
110
  end
102
111
 
103
112
  if ARGV.empty?
104
- if options[:update_spec]
113
+ if options[:update_spec] || options[:assetversion]
105
114
  exit 0
106
115
  else
107
116
  puts optparse.help
@@ -1,3 +1,3 @@
1
1
  module CfnDsl
2
- VERSION = '0.16.1'.freeze
2
+ VERSION = '0.16.2'.freeze
3
3
  end
@@ -18,6 +18,7 @@ describe 'cfndsl', type: :aruba do
18
18
  -u, --update-specification Update the Cloudformation Resource Specification file
19
19
  -g RESOURCE_TYPE,RESOURCE_LOGICAL_NAME,
20
20
  --generate Add resource type and logical name
21
+ -a, --assetversion Print out the specification version
21
22
  -l, --list List supported resources
22
23
  -h, --help Display this screen
23
24
  USAGE
@@ -44,6 +45,14 @@ describe 'cfndsl', type: :aruba do
44
45
  end
45
46
  end
46
47
 
48
+ context 'cfndsl -a' do
49
+ it 'prints out the specification file version' do
50
+ run 'cfndsl -a'
51
+ expect(last_command_started).to have_output_on_stderr(/([0-9]+\.){2}[0-9]+/)
52
+ expect(last_command_started).to have_exit_status(0)
53
+ end
54
+ end
55
+
47
56
  context 'cfndsl' do
48
57
  it 'displays the usage' do
49
58
  run 'cfndsl'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cfndsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.1
4
+ version: 0.16.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Jack
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-12-02 00:00:00.000000000 Z
14
+ date: 2017-12-07 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: bundler