Class: NavigationConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/navigation_config/navigation_config_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



2
3
4
# File 'lib/generators/navigation_config/navigation_config_generator.rb', line 2

def self.source_root
  @source_root ||= File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','generators','navigation_config', 'templates'))
end

Instance Method Details



7
8
9
10
# File 'lib/generators/navigation_config/navigation_config_generator.rb', line 7

def navigation_config
  copy_file('config/navigation.rb', 'config/navigation.rb')    
  say File.read(File.expand_path(File.join(File.dirname(__FILE__),'..','..','..','README')))
end