Class: Gutsy::Cli::Generator

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/gutsy/generator.rb

Instance Method Summary collapse

Constructor Details

#initialize(app_config, output_path) ⇒ Generator

Returns a new instance of Generator.



11
12
13
14
# File 'lib/gutsy/generator.rb', line 11

def initialize(app_config, output_path)
  @state = Gutsy::Generator::GemState.new(app_config)
  @output_path = output_path
end

Instance Method Details

#generate!Object



16
17
18
19
20
21
22
# File 'lib/gutsy/generator.rb', line 16

def generate!
  create_output_dir

  build_gem

  puts "Generated client gem can be found in... #{output_path}"
end