Sha256: 37b18cbdcf3ce5c2cf205c7a89058c0332ace2143121f832b66bfbf679d2520a

Contents?: true

Size: 722 Bytes

Versions: 12

Compression:

Stored size: 722 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'
    def generate
      Rna::Task.generate(options.dup.merge(:verbose => true))
    end
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rna-0.3.6 lib/rna/cli.rb
rna-0.3.5 lib/rna/cli.rb
rna-0.3.4 lib/rna/cli.rb
rna-0.3.3 lib/rna/cli.rb
rna-0.3.2 lib/rna/cli.rb
rna-0.3.1 lib/rna/cli.rb
rna-0.3.0 lib/rna/cli.rb
rna-0.2.4 lib/rna/cli.rb
rna-0.2.3 lib/rna/cli.rb
rna-0.2.2 lib/rna/cli.rb
rna-0.2.1 lib/rna/cli.rb
rna-0.2.0 lib/rna/cli.rb