Class: Eastrails::Generator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/eastrails/generator.rb

Direct Known Subclasses

Commands::Base, Components::Base

Instance Method Summary collapse

Constructor Details

#initializeGenerator

Returns a new instance of Generator.



6
7
8
9
10
11
# File 'lib/eastrails/generator.rb', line 6

def initialize
  self.options = {}
  self.behavior = :invoke
  self.destination_root = File.expand_path(".")
  self.class.source_root File.expand_path("../../resources", __FILE__)
end