Class: Gen

Inherits:
Object
  • Object
show all
Defined in:
lib/gen.rb,
lib/gen.rb

Overview

The base generator class. – TODO: add support for facets consoleapp. ++

Direct Known Subclasses

AppGen, FormGen

Constant Summary collapse

Version =

The version.

'0.30.0'
LibPath =

Library path.

File.dirname(__FILE__)

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#generator_dirObject

Returns the value of attribute generator_dir.



31
32
33
# File 'lib/gen.rb', line 31

def generator_dir
  @generator_dir
end

Instance Method Details

#runObject

Perform the generator actions.



48
49
# File 'lib/gen.rb', line 48

def run
end

#setupObject

Setup the generator.



43
44
# File 'lib/gen.rb', line 43

def setup
end

#teardownObject

Shutdown the generator.



53
54
# File 'lib/gen.rb', line 53

def teardown
end

#usageObject

Dump usage information for this controller.



35
36
37
38
39
# File 'lib/gen.rb', line 35

def usage
  filename = File.join(@generator_dir, 'USAGE')
  puts "\n#{File.read(filename)}"
  exit 1
end