Sha256: be068838f9d4682b7d279794fc2ead1607c47295394188718ad87386a2872042

Contents?: true

Size: 701 Bytes

Versions: 10

Compression:

Stored size: 701 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 :jest, type: :boolean
    def rails(app_name)
      MakeItSo::RailsAppGenerator.start(ARGV[1..-1])
    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

10 entries across 10 versions & 1 rubygems

Version Path
make_it_so-0.4.5 lib/make_it_so/command_line_interface.rb
make_it_so-0.4.3 lib/make_it_so/command_line_interface.rb
make_it_so-0.4.2 lib/make_it_so/command_line_interface.rb
make_it_so-0.4.1 lib/make_it_so/command_line_interface.rb
make_it_so-0.4.0 lib/make_it_so/command_line_interface.rb
make_it_so-0.3.8 lib/make_it_so/command_line_interface.rb
make_it_so-0.3.7 lib/make_it_so/command_line_interface.rb
make_it_so-0.3.6 lib/make_it_so/command_line_interface.rb
make_it_so-0.3.5 lib/make_it_so/command_line_interface.rb
make_it_so-0.3.4 lib/make_it_so/command_line_interface.rb