Sha256: 1ccb9a8a775896553dcfd0697417dd65aa4a8b882ca2fb444d404e72e8889e4b

Contents?: true

Size: 461 Bytes

Versions: 26

Compression:

Stored size: 461 Bytes

Contents

require "thor"

module Houston
  class CLI < Thor

    desc "new NAME", "Generate a new instance of Houston or module"
    option :module, type: :boolean, desc: "Generate a new module"
    def new(name)
      if options[:module]
        require "generators/module_generator"
        Generators::ModuleGenerator.start(args)
      else
        require "generators/instance_generator"
        Generators::InstanceGenerator.start(args)
      end
    end

  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
houston-core-0.5.6 lib/houston/cli.rb
houston-core-0.5.5 lib/houston/cli.rb
houston-core-0.5.4 lib/houston/cli.rb
houston-core-0.5.3 lib/houston/cli.rb
houston-core-0.5.2 lib/houston/cli.rb
houston-core-0.5.1 lib/houston/cli.rb