lono-cfn 1.0.2 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/CHANGELOG.md +9 -0
  4. data/Gemfile +2 -2
  5. data/Gemfile.lock +9 -9
  6. data/Guardfile +5 -5
  7. data/README.md +11 -2
  8. data/bin/lono-cfn +1 -1
  9. data/lib/lono-cfn.rb +10 -9
  10. data/lib/{lono_cfn → lono-cfn}/aws_services.rb +0 -0
  11. data/lib/{lono_cfn → lono-cfn}/base.rb +1 -1
  12. data/lib/{lono_cfn → lono-cfn}/cli.rb +2 -2
  13. data/lib/{lono_cfn → lono-cfn}/cli/help.rb +1 -1
  14. data/lib/lono-cfn/command.rb +23 -0
  15. data/lib/{lono_cfn → lono-cfn}/create.rb +0 -0
  16. data/lib/{lono_cfn → lono-cfn}/delete.rb +0 -0
  17. data/lib/{lono_cfn → lono-cfn}/plan.rb +0 -0
  18. data/lib/{lono_cfn → lono-cfn}/update.rb +0 -0
  19. data/lib/lono-cfn/util.rb +23 -0
  20. data/lib/lono-cfn/version.rb +3 -0
  21. data/lono_cfn.gemspec +1 -1
  22. data/vendor/lono-params/CHANGELOG.md +5 -0
  23. data/vendor/lono-params/Gemfile +2 -2
  24. data/vendor/lono-params/Gemfile.lock +3 -3
  25. data/vendor/lono-params/Guardfile +5 -5
  26. data/vendor/lono-params/bin/lono-params +1 -1
  27. data/vendor/lono-params/lib/lono-params.rb +4 -3
  28. data/vendor/lono-params/lib/{lono_params → lono-params}/cli.rb +3 -2
  29. data/vendor/lono-params/lib/{lono_params → lono-params}/cli/help.rb +1 -1
  30. data/vendor/lono-params/lib/lono-params/command.rb +23 -0
  31. data/vendor/lono-params/lib/{lono_params → lono-params}/generator.rb +0 -0
  32. data/vendor/lono-params/lib/{lono_params → lono-params}/version.rb +1 -1
  33. data/vendor/lono-params/{lono_params.gemspec → lono-params.gemspec} +1 -1
  34. metadata +21 -18
  35. data/lib/lono_cfn/util.rb +0 -17
  36. data/lib/lono_cfn/version.rb +0 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18309b3f182073cb0a6cd672910608dbc708c9fb
4
- data.tar.gz: 03f5114678b035a22847a55f2e45e400675842eb
3
+ metadata.gz: cce00749152f718ccb8edc814ae3fc05c65d94f5
4
+ data.tar.gz: d69c3c08a4165e3f8b77def7a06bc15dcb1a72be
5
5
  SHA512:
6
- metadata.gz: a81d98e76af778d1194e4294d7ad91bfe9ab023decf1858348cf577305d467e3b54dbefb5e446924d38cee30e36dfbee2455cb74f7fec8eb1fa9c6b2e7689be0
7
- data.tar.gz: c9599557b80108b19a790e43c89652cbe1c5414c54f8de43e761127cafd3077ba51100b752c4e6cfd9bfe663545e52f06611109e1389d674c6b4e31771880f5d
6
+ metadata.gz: e11817facf60121389255b1fa1aab57ab3051042faa6281bf356c1d0ab91c17c93d5cf7600d45ca32150a7c0b8c8a9d55245a35b415c4d091ac34b62adb0ea27
7
+ data.tar.gz: ec3826d45cc9264034f20e38a0bc9c1b0e914013548f53e5a890eaf5f14094a5cfc42d98f05826dede05abf038884f919416512bc2d9aad0f9568cab6e60d624
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.4.0
1
+ 2.4.1
data/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
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.4]
7
+
8
+ - rename lono_cfn -> lono-cfn
9
+ - allow --help or -h at the end of the command
10
+
11
+ ## [1.0.3]
12
+
13
+ - do not generate lono params with --no-lono option
14
+
6
15
  ## [1.0.2]
7
16
 
8
17
  - fix delete stack command
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in lono_cfn.gemspec
3
+ # Specify your gem's dependencies in lono-cfn.gemspec
4
4
  gemspec
5
5
 
6
- gem "codeclimate-test-reporter", group: :test, require: nil
6
+ gem "codeclimate-test-reporter", group: :test, require: nil
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lono-cfn (1.0.2)
4
+ lono-cfn (1.0.3)
5
5
  aws-sdk
6
6
  colorize
7
7
  hashie
@@ -20,13 +20,13 @@ GEM
20
20
  minitest (~> 5.1)
21
21
  thread_safe (~> 0.3, >= 0.3.4)
22
22
  tzinfo (~> 1.1)
23
- aws-sdk (2.9.24)
24
- aws-sdk-resources (= 2.9.24)
25
- aws-sdk-core (2.9.24)
23
+ aws-sdk (2.9.28)
24
+ aws-sdk-resources (= 2.9.28)
25
+ aws-sdk-core (2.9.28)
26
26
  aws-sigv4 (~> 1.0)
27
27
  jmespath (~> 1.0)
28
- aws-sdk-resources (2.9.24)
29
- aws-sdk-core (= 2.9.24)
28
+ aws-sdk-resources (2.9.28)
29
+ aws-sdk-core (= 2.9.28)
30
30
  aws-sigv4 (1.0.0)
31
31
  builder (3.2.3)
32
32
  byebug (9.0.6)
@@ -56,14 +56,14 @@ GEM
56
56
  guard
57
57
  guard-compat
58
58
  hashie (3.5.5)
59
- i18n (0.8.1)
59
+ i18n (0.8.4)
60
60
  jmespath (1.3.1)
61
61
  json (2.1.0)
62
62
  listen (3.1.5)
63
63
  rb-fsevent (~> 0.9, >= 0.9.4)
64
64
  rb-inotify (~> 0.9, >= 0.9.7)
65
65
  ruby_dep (~> 1.2)
66
- lono (1.1.1)
66
+ lono (1.1.3)
67
67
  colorize
68
68
  guard
69
69
  guard-cloudformation
@@ -131,4 +131,4 @@ DEPENDENCIES
131
131
  rspec
132
132
 
133
133
  BUNDLED WITH
134
- 1.14.6
134
+ 1.15.0
data/Guardfile CHANGED
@@ -1,12 +1,12 @@
1
1
  guard 'rspec' do
2
2
  watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { "spec/lono_cfn_spec.rb" }
4
- watch(%r{^lib/lono_cfn/(.+)\.rb$}) { "spec/lono_cfn_spec.rb" }
5
- watch('spec/spec_helper.rb') { "spec/lono_cfn_spec.rb" }
6
- watch(%r{^lib/lono_cfn/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
3
+ watch(%r{^lib/(.+)\.rb$}) { "spec/lono-cfn_spec.rb" }
4
+ watch(%r{^lib/lono-cfn/(.+)\.rb$}) { "spec/lono-cfn_spec.rb" }
5
+ watch('spec/spec_helper.rb') { "spec/lono-cfn_spec.rb" }
6
+ watch(%r{^lib/lono-cfn/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
7
  end
8
8
 
9
9
  guard 'bundler' do
10
10
  watch('Gemfile')
11
11
  watch(/^.+\.gemspec/)
12
- end
12
+ end
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  [![CircleCI](https://circleci.com/gh/tongueroo/lono-cfn.svg?style=svg)](https://circleci.com/gh/tongueroo/lono-cfn)
4
4
 
5
- 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:
5
+ 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. Examples:
6
6
 
7
7
  ```bash
8
8
  $ lono-cfn create my-stack-$(date +%s) --template my-template --params my-params
@@ -17,7 +17,16 @@ The above command:
17
17
  2. Generate a parameters file from the `params/my-params.txt`.
18
18
  3. Launch the CloudFormation stack with those parameters.
19
19
 
20
- 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.
20
+ 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 generation steps.
21
+
22
+ These blog posts cover both lono and lono-cfn:
23
+
24
+ * [Why Generate CloudFormation Templates with Lono](https://medium.com/boltops/why-generate-cloudformation-templates-with-lono-65b8ea5eb87d)
25
+ * [Generating CloudFormation Templates with Lono](https://medium.com/boltops/generating-cloudformation-templates-with-lono-4709afa1299b)
26
+ * [AutoScaling CloudFormation Template with Lono](https://medium.com/boltops/autoscaling-cloudformation-template-with-lono-3dc520480c5f)
27
+ * [CloudFormation Tools: lono, lono-params and lono-cfn Together
28
+ ](https://medium.com/boltops/cloudformation-tools-lono-lono-params-and-lono-cfn-play-together-620af51e616)
29
+ * [AWS CloudFormation dry-run with lono-cfn plan](https://medium.com/boltops/aws-cloudformation-dry-run-with-lono-cfn-plan-2a1e0f80d13c)
21
30
 
22
31
  ## Installation
23
32
 
data/bin/lono-cfn CHANGED
@@ -2,6 +2,6 @@
2
2
 
3
3
  $:.unshift(File.expand_path('../../lib', __FILE__))
4
4
  require 'lono-cfn'
5
- require 'lono_cfn/cli'
5
+ require 'lono-cfn/cli'
6
6
 
7
7
  LonoCfn::CLI.start(ARGV)
data/lib/lono-cfn.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  $:.unshift(File.expand_path("../", __FILE__))
2
- require "lono_cfn/version"
2
+ require "lono-cfn/version"
3
3
 
4
4
  require "colorize"
5
5
 
@@ -8,12 +8,13 @@ $:.unshift(File.expand_path("../../vendor/lono-params/lib", __FILE__))
8
8
  require "lono-params"
9
9
 
10
10
  module LonoCfn
11
- autoload :AwsServices, 'lono_cfn/aws_services'
12
- autoload :Util, 'lono_cfn/util'
13
- autoload :CLI, 'lono_cfn/cli'
14
- autoload :Base, 'lono_cfn/base'
15
- autoload :Create, 'lono_cfn/create'
16
- autoload :Update, 'lono_cfn/update'
17
- autoload :Delete, 'lono_cfn/delete'
18
- autoload :Plan, 'lono_cfn/plan'
11
+ autoload :Command, 'lono-cfn/command'
12
+ autoload :AwsServices, 'lono-cfn/aws_services'
13
+ autoload :Util, 'lono-cfn/util'
14
+ autoload :CLI, 'lono-cfn/cli'
15
+ autoload :Base, 'lono-cfn/base'
16
+ autoload :Create, 'lono-cfn/create'
17
+ autoload :Update, 'lono-cfn/update'
18
+ autoload :Delete, 'lono-cfn/delete'
19
+ autoload :Plan, 'lono-cfn/plan'
19
20
  end
File without changes
@@ -22,7 +22,7 @@ module LonoCfn
22
22
  def run
23
23
  generate_templates if @options[:lono]
24
24
  check_for_errors
25
- params = generate_params
25
+ params = generate_params if @options[:lono]
26
26
  save_stack(params) # defined in the sub class
27
27
  end
28
28
 
@@ -1,9 +1,9 @@
1
1
  require "thor"
2
- require "lono_cfn/cli/help"
2
+ require "lono-cfn/cli/help"
3
3
 
4
4
  module LonoCfn
5
5
 
6
- class CLI < Thor
6
+ class CLI < Command
7
7
  class_option :verbose, type: :boolean
8
8
  class_option :noop, type: :boolean
9
9
  class_option :project_root, desc: "Project folder. Defaults to current directory", default: "."
@@ -1,5 +1,5 @@
1
1
  module LonoCfn
2
- class CLI < Thor
2
+ class CLI < Command
3
3
  class Help
4
4
  class << self
5
5
  def create
@@ -0,0 +1,23 @@
1
+ module LonoCfn
2
+ class Command < Thor
3
+ class << self
4
+ def dispatch(m, args, options, config)
5
+ # Allow calling for help via:
6
+ # ufo docker help
7
+ # ufo docker -h
8
+ # ufo docker --help
9
+ # ufo docker -D
10
+ #
11
+ # as well thor's nomral setting as
12
+ #
13
+ # ufo help docker
14
+ help_flags = Thor::HELP_MAPPINGS + ["help"]
15
+ if args.length > 1 && !(args & help_flags).empty?
16
+ args -= help_flags
17
+ args.insert(-2, "help")
18
+ end
19
+ super
20
+ end
21
+ end
22
+ end
23
+ end
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,23 @@
1
+ module LonoCfn
2
+ module Util
3
+ def are_you_sure?(action)
4
+ if @options[:sure]
5
+ sure = 'y'
6
+ else
7
+ message = case action
8
+ when :update
9
+ "Are you sure you want to want to update the stack with the changes? (y/N)"
10
+ when :delete
11
+ "Are you sure you want to want to delete the stack with the changes? (y/N)"
12
+ end
13
+ puts message
14
+ sure = $stdin.gets
15
+ end
16
+
17
+ unless sure =~ /^y/
18
+ puts "Exiting without #{action}"
19
+ exit 0
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,3 @@
1
+ module LonoCfn
2
+ VERSION = "1.0.4"
3
+ end
data/lono_cfn.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'lono_cfn/version'
4
+ require 'lono-cfn/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "lono-cfn"
@@ -3,6 +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
+ ## [1.0.0]
7
+ - allow --help or -h at the end of the command
8
+ - rename lono_params -> lono-params
9
+ - major version bump. been in used and tested for a while now
10
+
6
11
  ## [0.1.1]
7
12
 
8
13
  - fix specs
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in lono_params.gemspec
3
+ # Specify your gem's dependencies in lono-params.gemspec
4
4
  gemspec
5
5
 
6
- gem "codeclimate-test-reporter", group: :test, require: nil
6
+ gem "codeclimate-test-reporter", group: :test, require: nil
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lono-params (0.1.1)
4
+ lono-params (1.0.0)
5
5
  colorize
6
6
  hashie
7
7
  json
@@ -26,7 +26,7 @@ GEM
26
26
  diff-lcs (1.3)
27
27
  docile (1.1.5)
28
28
  hashie (3.5.5)
29
- i18n (0.8.1)
29
+ i18n (0.8.4)
30
30
  json (2.1.0)
31
31
  minitest (5.10.2)
32
32
  plissken (0.3.0)
@@ -70,4 +70,4 @@ DEPENDENCIES
70
70
  rspec
71
71
 
72
72
  BUNDLED WITH
73
- 1.14.6
73
+ 1.15.0
@@ -1,12 +1,12 @@
1
1
  guard 'rspec' do
2
2
  watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { "spec/lono_params_spec.rb" }
4
- watch(%r{^lib/lono_params/(.+)\.rb$}) { "spec/lono_params_spec.rb" }
5
- watch('spec/spec_helper.rb') { "spec/lono_params_spec.rb" }
6
- watch(%r{^lib/lono_params/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
3
+ watch(%r{^lib/(.+)\.rb$}) { "spec/lono-params_spec.rb" }
4
+ watch(%r{^lib/lono-params/(.+)\.rb$}) { "spec/lono-params_spec.rb" }
5
+ watch('spec/spec_helper.rb') { "spec/lono-params_spec.rb" }
6
+ watch(%r{^lib/lono-params/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
7
7
  end
8
8
 
9
9
  guard 'bundler' do
10
10
  watch('Gemfile')
11
11
  watch(/^.+\.gemspec/)
12
- end
12
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  $:.unshift(File.expand_path('../../lib', __FILE__))
4
4
  require 'lono-params'
5
- require 'lono_params/cli'
5
+ require 'lono-params/cli'
6
6
 
7
7
  LonoParams::CLI.start(ARGV)
@@ -1,11 +1,12 @@
1
1
  $:.unshift(File.expand_path("../", __FILE__))
2
- require "lono_params/version"
2
+ require "lono-params/version"
3
3
 
4
4
  require "json"
5
5
  require "fileutils"
6
6
  require 'plissken' # Hash#to_snake_keys
7
7
 
8
8
  module LonoParams
9
- autoload :CLI, 'lono_params/cli'
10
- autoload :Generator, 'lono_params/generator'
9
+ autoload :CLI, 'lono-params/command'
10
+ autoload :CLI, 'lono-params/cli'
11
+ autoload :Generator, 'lono-params/generator'
11
12
  end
@@ -1,9 +1,10 @@
1
1
  require 'thor'
2
- require 'lono_params/cli/help'
2
+ require 'lono-params/command'
3
+ require 'lono-params/cli/help'
3
4
 
4
5
  module LonoParams
5
6
 
6
- class CLI < Thor
7
+ class CLI < Command
7
8
  class_option :verbose, type: :boolean
8
9
  class_option :noop, type: :boolean
9
10
  class_option :project_root, desc: "project root to use", default: '.'
@@ -1,5 +1,5 @@
1
1
  module LonoParams
2
- class CLI < Thor
2
+ class CLI < Command
3
3
  class Help
4
4
  class << self
5
5
  def generate
@@ -0,0 +1,23 @@
1
+ module LonoParams
2
+ class Command < Thor
3
+ class << self
4
+ def dispatch(m, args, options, config)
5
+ # Allow calling for help via:
6
+ # ufo docker help
7
+ # ufo docker -h
8
+ # ufo docker --help
9
+ # ufo docker -D
10
+ #
11
+ # as well thor's nomral setting as
12
+ #
13
+ # ufo help docker
14
+ help_flags = Thor::HELP_MAPPINGS + ["help"]
15
+ if args.length > 1 && !(args & help_flags).empty?
16
+ args -= help_flags
17
+ args.insert(-2, "help")
18
+ end
19
+ super
20
+ end
21
+ end
22
+ end
23
+ end
@@ -1,3 +1,3 @@
1
1
  module LonoParams
2
- VERSION = "0.1.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require 'lono_params/version'
4
+ require 'lono-params/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "lono-params"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono-cfn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-26 00:00:00.000000000 Z
11
+ date: 2017-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -173,16 +173,17 @@ files:
173
173
  - bin/lono-cfn
174
174
  - circle.yml
175
175
  - lib/lono-cfn.rb
176
- - lib/lono_cfn/aws_services.rb
177
- - lib/lono_cfn/base.rb
178
- - lib/lono_cfn/cli.rb
179
- - lib/lono_cfn/cli/help.rb
180
- - lib/lono_cfn/create.rb
181
- - lib/lono_cfn/delete.rb
182
- - lib/lono_cfn/plan.rb
183
- - lib/lono_cfn/update.rb
184
- - lib/lono_cfn/util.rb
185
- - lib/lono_cfn/version.rb
176
+ - lib/lono-cfn/aws_services.rb
177
+ - lib/lono-cfn/base.rb
178
+ - lib/lono-cfn/cli.rb
179
+ - lib/lono-cfn/cli/help.rb
180
+ - lib/lono-cfn/command.rb
181
+ - lib/lono-cfn/create.rb
182
+ - lib/lono-cfn/delete.rb
183
+ - lib/lono-cfn/plan.rb
184
+ - lib/lono-cfn/update.rb
185
+ - lib/lono-cfn/util.rb
186
+ - lib/lono-cfn/version.rb
186
187
  - lono_cfn.gemspec
187
188
  - spec/fixtures/my_project/config/lono.rb
188
189
  - spec/fixtures/my_project/output/my-stack.json
@@ -199,12 +200,14 @@ files:
199
200
  - vendor/lono-params/Rakefile
200
201
  - vendor/lono-params/bin/lono-params
201
202
  - vendor/lono-params/lib/lono-params.rb
202
- - vendor/lono-params/lib/lono_params/cli.rb
203
- - vendor/lono-params/lib/lono_params/cli/help.rb
204
- - vendor/lono-params/lib/lono_params/generator.rb
205
- - vendor/lono-params/lib/lono_params/version.rb
206
- - vendor/lono-params/lono_params.gemspec
203
+ - vendor/lono-params/lib/lono-params/cli.rb
204
+ - vendor/lono-params/lib/lono-params/cli/help.rb
205
+ - vendor/lono-params/lib/lono-params/command.rb
206
+ - vendor/lono-params/lib/lono-params/generator.rb
207
+ - vendor/lono-params/lib/lono-params/version.rb
208
+ - vendor/lono-params/lono-params.gemspec
207
209
  - vendor/lono-params/pkg/lono-params-0.0.6.gem
210
+ - vendor/lono-params/pkg/lono-params-1.0.0.gem
208
211
  - vendor/lono-params/spec/fixtures/my_project/output/params/my-stack.json
209
212
  - vendor/lono-params/spec/fixtures/my_project/params/my-stack.txt
210
213
  - vendor/lono-params/spec/lib/cli_spec.rb
@@ -229,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
232
  version: '0'
230
233
  requirements: []
231
234
  rubyforge_project:
232
- rubygems_version: 2.6.8
235
+ rubygems_version: 2.6.11
233
236
  signing_key:
234
237
  specification_version: 4
235
238
  summary: Wrapper cfn tool to quickly create CloudFormation stacks from lono templates
data/lib/lono_cfn/util.rb DELETED
@@ -1,17 +0,0 @@
1
- module LonoCfn
2
- module Util
3
- def are_you_sure?(action)
4
- if @options[:sure]
5
- sure = 'y'
6
- else
7
- puts "Are you sure you want to want to #{action} the stack with the changes? (y/N)"
8
- sure = $stdin.gets
9
- end
10
-
11
- unless sure =~ /^y/
12
- puts "Exiting without #{action}"
13
- exit 0
14
- end
15
- end
16
- end
17
- end
@@ -1,3 +0,0 @@
1
- module LonoCfn
2
- VERSION = "1.0.2"
3
- end