Sha256: 89fd159f45a594546709d31dd80bf4d0220f2d5d461aaba972f7f203d667122a

Contents?: true

Size: 355 Bytes

Versions: 4

Compression:

Stored size: 355 Bytes

Contents

require 'thor/group'

module RailsTemplater
  class Cli < Thor::Group
    argument :application_name, :type => :string, :desc => "The name of the rails application"
    desc "Generates a new Rails application with templater'"

    def run_templater
      system("rails new #{application_name} -O -m #{RailsTemplater::template_runner}")
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails_templater-0.2.1 lib/rails_templater/cli.rb
rails_templater-0.2.0 lib/rails_templater/cli.rb
rails_templater-0.1.2 lib/rails_templater/cli.rb
rails_templater-0.1.1 lib/rails_templater/cli.rb