lono-cfn 0.0.7 → 0.0.8

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: 1bbea5b4e9a4b1acf40f572ed5e62be663c7cf5e
4
- data.tar.gz: a43798916772163887f372b59ea0cc64dc438f7a
3
+ metadata.gz: 7c8ca0b40036227cb0fdcbc68045dfe5e764d93d
4
+ data.tar.gz: 99ecb021684fee61214f718a33e84918fd9b6322
5
5
  SHA512:
6
- metadata.gz: 14817108aeaea0ba518b8f6fe1dea24d305b60fb5f1b284f14df112603c8ba25988564a8fb4961f73028c03607230d19b2a2782a729fb8e34ff345abccc74b96
7
- data.tar.gz: cc484dba6eebe9f3d5d3fd78339b827acb00533a564aa80576c7f3371af0b73fc42b3508034623a428f1e34ab4991300a0acd82a360c9d7466c1caf802dd2114
6
+ metadata.gz: 31e6cea19e34d327bd56d093d63979d225fb17b903be120a137de5fd1b8a01e6dda0ac743858cb94e17653da10a606976915c8f3290ea4f4234019e6c0eda7d4
7
+ data.tar.gz: 16fae8cc421de79aa457e651e6ad38dae9e83321ddbe7dd2f102941d88afcf47f267aa1a9204db76c00cf6c792330c47e46459308afd8b6b682246ab82f86f1a
data/.gitmodules ADDED
@@ -0,0 +1,3 @@
1
+ [submodule "vendor/lono-params"]
2
+ path = vendor/lono-params
3
+ url = git@github.com:tongueroo/lono-params.git
data/CHANGELOG.md CHANGED
@@ -3,7 +3,11 @@
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.0.6]
6
+ ## [0.0.8]
7
+
8
+ - vendor/lono-params
9
+
10
+ ## [0.0.7]
7
11
 
8
12
  - allow missing params file
9
13
 
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lono-cfn (0.0.7)
4
+ lono-cfn (0.0.8)
5
5
  aws-sdk
6
6
  colorize
7
7
  hashie
8
8
  lono
9
- lono-params
9
+ plissken
10
10
  thor
11
11
 
12
12
  GEM
@@ -79,11 +79,6 @@ GEM
79
79
  rake
80
80
  rb-fsevent
81
81
  thor
82
- lono-params (0.0.5)
83
- colorize
84
- hashie
85
- plissken
86
- thor
87
82
  lumberjack (1.0.10)
88
83
  method_source (0.8.2)
89
84
  minitest (5.10.1)
data/README.md CHANGED
@@ -3,13 +3,15 @@
3
3
  Wrapper cfn tool to quickly create CloudFormation stacks from [lono templates](https://github.com/tongueroo/lono) and [lono-params](https://github.com/tongueroo/lono-params) files. Example:
4
4
 
5
5
  ```bash
6
- $ bundle exec lono-cfn create my-stack-$(date +%s) --template my-template --params my-params
6
+ $ lono-cfn create my-stack-$(date +%s) --template my-template --params my-params
7
+ $ lono-cfn update my-stack-1493859659 --template my-template --params my-params
8
+ $ lono-cfn delete my-stack-1493859659
7
9
  ```
8
10
 
9
11
  The above command:
10
12
 
11
- 1. Generates the lono templates defined in the lono config files.
12
- 2. Generate a parameters file from the params/my-params.txt.
13
+ 1. Generates the lono templates defined in the lono `config` and `template` files.
14
+ 2. Generate a parameters file from the `params/my-params.txt`.
13
15
  3. Launch the CloudFormation stack with those parameters.
14
16
 
15
17
  This tool is meant to be used in conjuction with [lono](https://github.com/tongueroo/lono) but can also be used separately with the `--no-lono` flag, which skips the `lono generate` step.
@@ -36,7 +38,7 @@ Provided that you are in a lono project and have a `my-stack` lono template defi
36
38
  $ lono-cfn create my-stack
37
39
  ```
38
40
 
39
- The above command will generate and use the template in output/my-stack.json and parameters in params/my-stack.txt.
41
+ The above command will generate and use the template in `output/my-stack.json` and parameters in `params/my-stack.txt`.
40
42
 
41
43
  ### Conventions
42
44
 
@@ -88,3 +90,17 @@ The template that will be use is output/different-name3.json and the parameters
88
90
  3. Commit your changes (`git commit -am 'Add some feature'`)
89
91
  4. Push to the branch (`git push origin my-new-feature`)
90
92
  5. Create new Pull Request
93
+
94
+ ## Developing
95
+
96
+ ```bash
97
+ $ git clone git@github.com:yourfork/lono-cfn.git
98
+ $ git submodule init
99
+ $ git submodule update
100
+ ```
101
+
102
+ ## Related Projects
103
+
104
+ * [lono](https://github.com/tongueroo/lono) - Lono is a CloudFormation Template generator. Lono generates CloudFormation templates based on ERB ruby templates.
105
+ * [lono-params](https://github.com/tongueroo/lono-params) - Tool to generate a CloudFormation parameters json formatted file from a simplier env like file.
106
+
data/lib/lono-cfn.rb CHANGED
@@ -1,6 +1,9 @@
1
1
  $:.unshift(File.expand_path("../", __FILE__))
2
2
  require "lono_cfn/version"
3
- require "pp"
3
+
4
+ # use vendored lono-params
5
+ $:.unshift(File.expand_path("../../vendor/lono-params/lib", __FILE__))
6
+ require "lono-params"
4
7
 
5
8
  module LonoCfn
6
9
  autoload :AwsServices, 'lono_cfn/aws_services'
@@ -1,3 +1,3 @@
1
1
  module LonoCfn
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
data/lono_cfn.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
  spec.add_dependency "colorize"
24
24
  spec.add_dependency "lono"
25
25
  spec.add_dependency "aws-sdk"
26
- spec.add_dependency "lono-params"
26
+ spec.add_dependency "plissken" # dependency for vendor/lono-params
27
27
 
28
28
  spec.add_development_dependency "bundler", "~> 1.3"
29
29
  spec.add_development_dependency "rake"
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: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: lono-params
84
+ name: plissken
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -188,6 +188,7 @@ extensions: []
188
188
  extra_rdoc_files: []
189
189
  files:
190
190
  - ".gitignore"
191
+ - ".gitmodules"
191
192
  - ".rspec"
192
193
  - CHANGELOG.md
193
194
  - Gemfile