lono-cfn 1.0.0 → 1.0.1

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: 9582b27f0f630faf5a34fa7a07766a6804b373b9
4
- data.tar.gz: e14a14ae1d175851827819043716d6df1f8ca7b9
3
+ metadata.gz: 07ffe19919f63ad15778776a481a37b65e8273d3
4
+ data.tar.gz: 5cf65356e9d1c0701dd04f84152a3844febaa56b
5
5
  SHA512:
6
- metadata.gz: ad9ffb22a764dd837de2e01bb037985f3c06ed1d2cc2e2de4a7b331af633266d2bed9070362370a5b277c5dafd9cface44dea5933a1d03be689a96be347e7735
7
- data.tar.gz: 296c15395bcaef3a043127303faa7b932a1ecc90d296ed753c342f69b6583afe75140977cab9e2fe6aa8baf70446ac15458641ed7c0780a1bdf066f337ee908b
6
+ metadata.gz: fc5390a5d852efb9713277d8ff5303c62cfad46ef5285a97500b6a7673ac2fbaf96438c5af2a4099d28e6186fd4db3c8da9abb992291cf927153e5ebfb857ca3
7
+ data.tar.gz: e9527a63aa2c9f8a19f4e35525ac3a9755238472f21b615b6b86c0b587ba9294f3de1a364a26837bac153b38678022d1af901aad609b863f7ad5269fe80a6b1e
data/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [1.0.1]
7
+
8
+ - update vendored lono-params 0.1.1
9
+
6
10
  ## [1.0.0]
7
11
 
8
12
  - add lono-cfn plan
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lono-cfn (1.0.0)
4
+ lono-cfn (1.0.1)
5
5
  aws-sdk
6
6
  colorize
7
7
  hashie
data/README.md CHANGED
@@ -7,7 +7,8 @@ Wrapper cfn tool to quickly create CloudFormation stacks from [lono templates](h
7
7
  ```bash
8
8
  $ lono-cfn create my-stack-$(date +%s) --template my-template --params my-params
9
9
  $ lono-cfn update my-stack-1493859659 --template my-template --params my-params
10
- $ lono-cfn delete my-stack-1493859659
10
+ $ lono-cfn delete my-stack-1493859659 --sure
11
+ $ lono-cfn plan my-stack-1493859659 --template template-name --params params-name
11
12
  ```
12
13
 
13
14
  The above command:
@@ -145,5 +146,3 @@ $ git submodule update --init
145
146
 
146
147
  * [lono](https://github.com/tongueroo/lono) - Lono is a CloudFormation Template generator. Lono generates CloudFormation templates based on ERB ruby templates.
147
148
  * [lono-params](https://github.com/tongueroo/lono-params) - Tool to generate a CloudFormation parameters json formatted file from a simplier env like file.
148
-
149
- ith
@@ -1,3 +1,3 @@
1
1
  module LonoCfn
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -3,9 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [0.1.1]
7
+
8
+ - fix specs
9
+
10
+ ## [0.1.0]
11
+
12
+ - pretty output path
13
+
6
14
  ## [0.0.6]
7
15
 
8
- - add internal mute option
16
+ - add internal mute option
9
17
 
10
18
  ## [0.0.5] do not generate param if the value is not set
11
19
 
@@ -1,9 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lono-params (0.0.6)
4
+ lono-params (0.1.1)
5
5
  colorize
6
6
  hashie
7
+ json
7
8
  plissken
8
9
  thor
9
10
 
@@ -19,82 +20,41 @@ GEM
19
20
  thread_safe (~> 0.3, >= 0.3.4)
20
21
  tzinfo (~> 1.1)
21
22
  builder (3.2.3)
22
- codeclimate-test-reporter (0.6.0)
23
- simplecov (>= 0.7.1, < 1.0.0)
24
- coderay (1.1.1)
23
+ codeclimate-test-reporter (1.0.8)
24
+ simplecov (<= 0.13)
25
25
  colorize (0.8.1)
26
- diff-lcs (1.2.5)
26
+ diff-lcs (1.3)
27
27
  docile (1.1.5)
28
- ffi (1.9.14)
29
- formatador (0.2.5)
30
- guard (2.14.0)
31
- formatador (>= 0.2.4)
32
- listen (>= 2.7, < 4.0)
33
- lumberjack (~> 1.0)
34
- nenv (~> 0.1)
35
- notiffany (~> 0.0)
36
- pry (>= 0.9.12)
37
- shellany (~> 0.0)
38
- thor (>= 0.18.1)
39
- guard-bundler (2.1.0)
40
- bundler (~> 1.0)
41
- guard (~> 2.2)
42
- guard-compat (~> 1.1)
43
- guard-compat (1.2.1)
44
- guard-rspec (4.7.3)
45
- guard (~> 2.1)
46
- guard-compat (~> 1.1)
47
- rspec (>= 2.99.0, < 4.0)
48
28
  hashie (3.5.5)
49
29
  i18n (0.8.1)
50
- json (2.0.2)
51
- listen (3.1.5)
52
- rb-fsevent (~> 0.9, >= 0.9.4)
53
- rb-inotify (~> 0.9, >= 0.9.7)
54
- ruby_dep (~> 1.2)
55
- lumberjack (1.0.10)
56
- method_source (0.8.2)
30
+ json (2.1.0)
57
31
  minitest (5.10.2)
58
- nenv (0.3.0)
59
- notiffany (0.1.1)
60
- nenv (~> 0.1)
61
- shellany (~> 0.0)
62
32
  plissken (0.3.0)
63
33
  symbolize (~> 4.2)
64
- pry (0.10.4)
65
- coderay (~> 1.1.0)
66
- method_source (~> 0.8.1)
67
- slop (~> 3.4)
68
- rake (11.3.0)
69
- rb-fsevent (0.9.7)
70
- rb-inotify (0.9.7)
71
- ffi (>= 0.5.0)
72
- rspec (3.5.0)
73
- rspec-core (~> 3.5.0)
74
- rspec-expectations (~> 3.5.0)
75
- rspec-mocks (~> 3.5.0)
76
- rspec-core (3.5.3)
77
- rspec-support (~> 3.5.0)
78
- rspec-expectations (3.5.0)
34
+ rake (12.0.0)
35
+ rspec (3.6.0)
36
+ rspec-core (~> 3.6.0)
37
+ rspec-expectations (~> 3.6.0)
38
+ rspec-mocks (~> 3.6.0)
39
+ rspec-core (3.6.0)
40
+ rspec-support (~> 3.6.0)
41
+ rspec-expectations (3.6.0)
79
42
  diff-lcs (>= 1.2.0, < 2.0)
80
- rspec-support (~> 3.5.0)
81
- rspec-mocks (3.5.0)
43
+ rspec-support (~> 3.6.0)
44
+ rspec-mocks (3.6.0)
82
45
  diff-lcs (>= 1.2.0, < 2.0)
83
- rspec-support (~> 3.5.0)
84
- rspec-support (3.5.0)
85
- ruby_dep (1.4.0)
86
- shellany (0.0.1)
87
- simplecov (0.12.0)
46
+ rspec-support (~> 3.6.0)
47
+ rspec-support (3.6.0)
48
+ simplecov (0.13.0)
88
49
  docile (~> 1.1.0)
89
50
  json (>= 1.8, < 3)
90
51
  simplecov-html (~> 0.10.0)
91
- simplecov-html (0.10.0)
92
- slop (3.6.0)
52
+ simplecov-html (0.10.1)
93
53
  symbolize (4.5.2)
94
54
  activemodel (>= 3.2, < 5)
95
55
  activesupport (>= 3.2, < 5)
96
56
  i18n
97
- thor (0.19.1)
57
+ thor (0.19.4)
98
58
  thread_safe (0.3.6)
99
59
  tzinfo (1.2.3)
100
60
  thread_safe (~> 0.1)
@@ -105,11 +65,9 @@ PLATFORMS
105
65
  DEPENDENCIES
106
66
  bundler (~> 1.3)
107
67
  codeclimate-test-reporter
108
- guard
109
- guard-bundler
110
- guard-rspec
111
68
  lono-params!
112
69
  rake
70
+ rspec
113
71
 
114
72
  BUNDLED WITH
115
73
  1.14.6
@@ -1,6 +1,10 @@
1
1
  $:.unshift(File.expand_path("../", __FILE__))
2
2
  require "lono_params/version"
3
3
 
4
+ require "json"
5
+ require "fileutils"
6
+ require 'plissken' # Hash#to_snake_keys
7
+
4
8
  module LonoParams
5
9
  autoload :CLI, 'lono_params/cli'
6
10
  autoload :Generator, 'lono_params/generator'
@@ -1,7 +1,3 @@
1
- require "json"
2
- require "fileutils"
3
- require 'plissken' # Hash#to_snake_keys
4
-
5
1
  module LonoParams
6
2
  class Generator
7
3
  def initialize(name, options)
@@ -72,10 +68,11 @@ module LonoParams
72
68
  end
73
69
 
74
70
  def output_path
75
- path = "#{@project_root}/output/params/#{@name}.json"
71
+ "#{@project_root}/output/params/#{@name}.json".sub(/\.\//,'')
76
72
  end
77
73
 
78
74
  def write_output(json)
75
+ puts "output_path #{output_path.inspect}"
79
76
  dir = File.dirname(output_path)
80
77
  FileUtils.mkdir_p(dir) unless File.exist?(dir)
81
78
  IO.write(output_path, json)
@@ -1,3 +1,3 @@
1
1
  module LonoParams
2
- VERSION = "0.0.6"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -22,10 +22,9 @@ Gem::Specification.new do |spec|
22
22
  spec.add_dependency "hashie"
23
23
  spec.add_dependency "colorize"
24
24
  spec.add_dependency "plissken"
25
+ spec.add_dependency "json"
25
26
 
26
27
  spec.add_development_dependency "bundler", "~> 1.3"
27
28
  spec.add_development_dependency "rake"
28
- spec.add_development_dependency "guard"
29
- spec.add_development_dependency "guard-bundler"
30
- spec.add_development_dependency "guard-rspec"
29
+ spec.add_development_dependency "rspec"
31
30
  end
@@ -1,10 +1,7 @@
1
1
  ENV['TEST'] = '1'
2
2
 
3
- require "codeclimate-test-reporter"
4
- CodeClimate::TestReporter.start
5
-
6
3
  require "pp"
7
-
4
+
8
5
  root = File.expand_path('../../', __FILE__)
9
6
  require "#{root}/lib/lono-params"
10
7
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono-cfn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen