Sha256: 03dd237948a07acb118857be617ac18953118430d7e1c51a9904a6fab9e98ef0
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
require 'thor' require 'thor/group' require 'tiny-rails/actions' require 'tiny-rails/commands/new' require 'tiny-rails/commands/add' module TinyRails class CLI < Thor include Thor::Actions desc 'new APP_PATH', 'Creates a new tiny Rails application' method_option :addons, :type => :array, :aliases => '-a', :default => [] def new(app_path) Commands::New.start([app_path]) add(options[:addons]) unless options[:addons].empty? end desc 'add [addons]', 'Configures addons on a generated tiny Rails application' def add(addons = []) addons = Array(addons) Commands::Add.start(addons) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tiny-rails-0.0.2 | lib/tiny-rails/cli.rb |