rna 0.3.6 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rna/cli.rb +1 -0
- data/lib/rna/outputers.rb +1 -0
- data/lib/rna/version.rb +1 -1
- metadata +2 -2
data/lib/rna/cli.rb
CHANGED
@@ -20,6 +20,7 @@ Builds the node.json files based on config/rna.rb and writes them to the ouput f
|
|
20
20
|
Builds the node.json files based on config/rna.rb and writes them to s3 based on the s3 settings in config/s3.yml.
|
21
21
|
EOL
|
22
22
|
method_option :output, :aliases => '-o', :desc => "specify where to output the generated files to", :default => 'filesystem'
|
23
|
+
method_option :clean, :type => :boolean, :aliases => "-c", :desc => "remove all output files before generating"
|
23
24
|
def generate
|
24
25
|
Rna::Task.generate(options.dup.merge(:verbose => true))
|
25
26
|
end
|
data/lib/rna/outputers.rb
CHANGED
@@ -10,6 +10,7 @@ module Rna
|
|
10
10
|
def run(jsons)
|
11
11
|
# options[:output_path] only used for specs
|
12
12
|
output_path = options[:output_path] || "output"
|
13
|
+
FileUtils.rm_rf(output_path) if options[:clean]
|
13
14
|
FileUtils.mkdir(output_path) unless File.exist?(output_path)
|
14
15
|
jsons.each do |role,json|
|
15
16
|
puts " #{role}.json" if options[:verbose]
|
data/lib/rna/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rna
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
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:
|
12
|
+
date: 2013-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|