Sha256: ddd4141c2a0ad5b5682fe253576e5c51939ed0ed4257f1c8c171a677a5afde35

Contents?: true

Size: 439 Bytes

Versions: 9

Compression:

Stored size: 439 Bytes

Contents

require 'rails/generators'

class Ipizza::InitGenerator < Rails::Generators::Base

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

  def create_configuration_file
    template 'ipizza.yml', 'config/ipizza.yml'
  end
  
  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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ipizza-rails-2.1.0 lib/ipizza-rails/generator/init.rb
ipizza-rails-2.0.1 lib/ipizza-rails/generator/init.rb
ipizza-rails-2.0.0 lib/ipizza-rails/generator/init.rb
ipizza-rails-1.0.0 lib/ipizza-rails/generator/init.rb
ipizza-rails-0.0.7 lib/ipizza-rails/generator/init.rb
ipizza-rails-0.0.6 lib/ipizza-rails/generator/init.rb
ipizza-rails-0.0.5 lib/ipizza-rails/generator/init.rb
ipizza-rails-0.0.4 lib/ipizza-rails/generator/init.rb
ipizza-rails-0.0.3 lib/ipizza-rails/generator/init.rb