Sha256: 53e760e577db17d2bdce3c90fc42d4e8afc5b9c37c635275a83f9f856de24182

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

module Pesapal
  # 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 Generators
    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

2 entries across 2 versions & 1 rubygems

Version Path
pesapal-1.5.6 lib/generators/pesapal/install_generator.rb
pesapal-1.5.5 lib/generators/pesapal/install_generator.rb