Sha256: 72fede7b4e55e5de33adf74ec92495899e60bbb361393b49e8abac0a985aa51b

Contents?: true

Size: 620 Bytes

Versions: 3

Compression:

Stored size: 620 Bytes

Contents

# Since generators are not specific to this project, it's preferable you refer
# to the official documentation on the Rails site here;
# http://guides.rubyonrails.org/generators.html
module Pesapal
  module Generators
    # Install pesapal generator
    class InstallGenerator < Rails::Generators::Base
      source_root File.expand_path('../../templates', __FILE__)

      desc 'Creates a Pesapal config file to your application.'

      def copy_config
        copy_file 'pesapal.yml', 'config/pesapal.yml'
      end

      def show_readme
        readme 'README.md' if behavior == :invoke
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pesapal-1.8.0 lib/generators/pesapal/install_generator.rb
pesapal-1.7.0 lib/generators/pesapal/install_generator.rb
pesapal-1.6.0 lib/generators/pesapal/install_generator.rb