Class: Riagent::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/riagent/install/install_generator.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootObject



26
27
28
# File 'lib/rails/generators/riagent/install/install_generator.rb', line 26

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

Instance Method Details

#create_config_fileObject



30
31
32
# File 'lib/rails/generators/riagent/install/install_generator.rb', line 30

def create_config_file
  template 'riak.yml', File.join('config', 'riak.yml')
end