Class: Gxapi::InstallGenerator

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.source_rootString

Our root for template files

Returns:

  • (String)


38
39
40
# File 'lib/generators/gxapi/install_generator.rb', line 38

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

Instance Method Details

#copy_config_filetype

Copy our config file over

Returns:

  • (type)
    description


46
47
48
# File 'lib/generators/gxapi/install_generator.rb', line 46

def copy_config_file
  template "gxapi.yml", "config/gxapi.yml"
end