Sha256: 6d7b4430ba17198b0c4039a4f1b5f27ef07910d1b9b5888f0c8dc39484ac9ece

Contents?: true

Size: 508 Bytes

Versions: 1

Compression:

Stored size: 508 Bytes

Contents

require 'thor'
module MakeItSo
  class CommandLineInterface < Thor
    desc "rails <app_name>",
      "generates a rails application based on your specifications"
    option :devise
    def rails(app_name)
      puts "#{app_name}"
      MakeItSo::RailsAppGenerator.start([app_name])
    end

    desc "sinatra <app_name>",
      "generates a sinatra application based on your specifications"
    def sinatra(*args)
      puts "#{args.first}"
      MakeItSo::SinatraAppGenerator.start(args)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
make_it_so-0.0.4 lib/make_it_so/command_line_interface.rb