Class: Ipizza::InitGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Ipizza::InitGenerator
- Defined in:
- lib/ipizza-rails/generator/init.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.source_root ⇒ Object
5 6 7 |
# File 'lib/ipizza-rails/generator/init.rb', line 5 def self.source_root @source_root ||= File.join(File.dirname(__FILE__), 'templates') end |
Instance Method Details
#copy_test_certificates ⇒ Object
13 14 15 |
# File 'lib/ipizza-rails/generator/init.rb', line 13 def copy_test_certificates %w(nordea_test_priv seb_test_priv.pem seb_test_pub.pem).each { |f| copy_file "certificates/#{f}", "config/certificates/#{f}" } end |
#create_configuration_file ⇒ Object
9 10 11 |
# File 'lib/ipizza-rails/generator/init.rb', line 9 def create_configuration_file template 'ipizza.yml', 'config/ipizza.yml' end |