Class: Houston::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/houston/cli.rb

Instance Method Summary collapse

Instance Method Details

#new(name) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/houston/cli.rb', line 8

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