Sha256: e4a98b170fc63c8d8dd4d2e66a95f70c0120005074743f02ebbc8bb3d243ccbc
Contents?: true
Size: 867 Bytes
Versions: 3
Compression:
Stored size: 867 Bytes
Contents
module Rna class CLI < Thor desc "init", "Setup rna project" long_desc "Sets up config/rna.rb" def init Rna::Tasks.init end desc "build", "Builds node.json files" long_desc <<EOL Examples: 1. rna build Builds the node.json files based on config/rna.rb and writes them to the nodejson folder on the filesystem. 2. rna --output s3 build Builds the node.json files based on config/rna.rb and writes them to s3 based on the s3 settings in config/s3.yml. EOL method_option :output, :aliases => '-o', :desc => "specify where to output the generated files to", :default => 'filesystem' method_option :public_read, :aliases => '-p', :desc => "make s3 files readable by public, default private", :default => false, :type => :boolean def build Rna::Tasks.build(options.dup.merge(:verbose => true)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rna-0.1.6 | lib/rna/cli.rb |
rna-0.1.5 | lib/rna/cli.rb |
rna-0.1.4 | lib/rna/cli.rb |