lono 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/lib/lono/cli.rb CHANGED
@@ -17,6 +17,7 @@ Examples:
17
17
 
18
18
  Builds the cloud formation templates files based on config/lono.rb and writes them to the output folder on the filesystem.
19
19
  EOL
20
+ method_option :clean, :type => :boolean, :aliases => "-c", :desc => "remove all output files before generating"
20
21
  def generate
21
22
  Lono::Task.generate(options.dup.merge(:verbose => true))
22
23
  end
data/lib/lono/dsl.rb CHANGED
@@ -26,6 +26,7 @@ module Lono
26
26
 
27
27
  def output(options={})
28
28
  output_path = options[:output_path] || 'output'
29
+ FileUtils.rm_rf(output_path) if options[:clean]
29
30
  FileUtils.mkdir(output_path) unless File.exist?(output_path)
30
31
  puts "Generating Cloud Formation templates:" if options[:verbose]
31
32
  @results.each do |name,json|
data/lib/lono/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lono
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lono
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-08 00:00:00.000000000 Z
12
+ date: 2013-01-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -250,4 +250,3 @@ test_files:
250
250
  - spec/project/templates/app.json.erb
251
251
  - spec/project/templates/user_data/app.sh.erb
252
252
  - spec/spec_helper.rb
253
- has_rdoc: