Sha256: 95ebf65e27734bef386fe3fec179af5adaa7fcba457c3d766027b7a9e2be2049

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 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)
      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

1 entries across 1 versions & 1 rubygems

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