Class: Venus::Generators::Base

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration, Rails::Generators::ResourceHelpers, Helpers
Defined in:
lib/generators/venus/base.rb

Class Method Summary collapse

Class Method Details

.next_migration_number(path) ⇒ Object



9
10
11
# File 'lib/generators/venus/base.rb', line 9

def self.next_migration_number(path)
  Time.now.utc.strftime("%Y%m%d%H%M%S")
end

.source_rootObject



15
16
17
# File 'lib/generators/venus/base.rb', line 15

def self.source_root
  File.expand_path(File.join(File.dirname(__FILE__), generator_name, 'templates'))
end