Sha256: ce1ddccb0bf190c692d32d870798cd7ecc426d83d4a78df0ff546092096845a2
Contents?: true
Size: 946 Bytes
Versions: 1
Compression:
Stored size: 946 Bytes
Contents
module Rna class CLI < Thor desc "init", "Setup rna project" long_desc "Sets up config/rna.rb" def init Rna::Task.init end desc "generate", "Builds node.json files" long_desc <<EOL Examples: 1. rna generate Builds the node.json files based on config/rna.rb and writes them to the ouput folder on the filesystem. 2. rna generate -o s3 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 :clean, :type => :boolean, :aliases => "-c", :desc => "remove all output files before generating" method_option :verbose, :type => :boolean, :aliases => "-v", :desc => "show files being generated" def generate Rna::Task.generate(options) puts "Rna files generated" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rna-0.3.8 | lib/rna/cli.rb |