Module: Pinport::Generator
- Defined in:
- lib/pinport/generators/generator.rb
Class Method Summary collapse
Class Method Details
.generate_config(output = 'config.yml') ⇒ Object
7 8 9 |
# File 'lib/pinport/generators/generator.rb', line 7 def self.generate_config(output = 'config.yml') FileUtils.copy("#{templates_path}/config/config.yml", "#{output}") end |
.templates_path ⇒ Object
3 4 5 |
# File 'lib/pinport/generators/generator.rb', line 3 def self.templates_path File.('../templates', __FILE__) end |