Class: Gxapi::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Gxapi::InstallGenerator
- Defined in:
- lib/generators/gxapi/install_generator.rb
Class Method Summary collapse
-
.source_root ⇒ String
Our root for template files.
Instance Method Summary collapse
-
#copy_config_file ⇒ type
Copy our config file over.
Class Method Details
.source_root ⇒ String
Our root for template files
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_file ⇒ type
Copy our config file over
46 47 48 |
# File 'lib/generators/gxapi/install_generator.rb', line 46 def copy_config_file template "gxapi.yml", "config/gxapi.yml" end |