Sha256: 5da2febda4baab2c62d1938ae1961382030c3723d21e1ced58cc8926f85817a4
Contents?: true
Size: 775 Bytes
Versions: 2
Compression:
Stored size: 775 Bytes
Contents
require 'thor' module MakeItSo class CommandLineInterface < Thor desc "rails <app_name>", "generates a rails application based on your specifications" option :devise, type: :boolean option :js_test_lib, default: "jest" def rails(app_name) if MakeItSo::Rails::PrerequisiteCheck.new.check MakeItSo::RailsAppGenerator.start(ARGV[1..-1]) end end desc "sinatra <app_name>", "generates a sinatra application based on your specifications" def sinatra(*args) puts "#{args.first}" MakeItSo::SinatraAppGenerator.start(args) end desc "gosu <app_name>", "generates a gosu game template" def gosu(*args) puts "#{args.first}" MakeItSo::GosuAppGenerator.start(args) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
make_it_so-0.6.0 | lib/make_it_so/command_line_interface.rb |
make_it_so-0.5.1 | lib/make_it_so/command_line_interface.rb |