Sha256: 0150ae12f949d278d5294adf14c6acc98e9b72cdee1b9a3bd204baf70b85cacb

Contents?: true

Size: 843 Bytes

Versions: 2

Compression:

Stored size: 843 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)
    end
  end
  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rna-0.1.1 lib/rna/cli.rb
rna-0.1.0 lib/rna/cli.rb