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.9.2 lib/houston/cli.rb
houston-core-0.9.1 lib/houston/cli.rb
houston-core-0.9.0 lib/houston/cli.rb
houston-core-0.9.0.rc1 lib/houston/cli.rb
houston-core-0.8.4 lib/houston/cli.rb
houston-core-0.8.3 lib/houston/cli.rb
houston-core-0.8.2 lib/houston/cli.rb
houston-core-0.8.1 lib/houston/cli.rb
houston-core-0.8.0 lib/houston/cli.rb
houston-core-0.8.0.pre2 lib/houston/cli.rb
houston-core-0.8.0.pre lib/houston/cli.rb
houston-core-0.7.0 lib/houston/cli.rb
houston-core-0.7.0.beta4 lib/houston/cli.rb
houston-core-0.7.0.beta3 lib/houston/cli.rb
houston-core-0.7.0.beta2 lib/houston/cli.rb
houston-core-0.7.0.beta lib/houston/cli.rb
houston-core-0.6.3 lib/houston/cli.rb
houston-core-0.6.2 lib/houston/cli.rb
houston-core-0.6.1 lib/houston/cli.rb
houston-core-0.6.0 lib/houston/cli.rb