Sha256: b38401c62a310f89a65a14adc0cdfc6dac828c1007262dab9b1bce94a4739486

Contents?: true

Size: 624 Bytes

Versions: 4

Compression:

Stored size: 624 Bytes

Contents

class Veritrans
  class InstallGenerator < ::Rails::Generators::Base
    source_root File.expand_path("../../templates", __FILE__)

desc %{
Description:
    Copies Veritrans configuration file to your application's initializer directory.
}

    desc "copy veritrans.yml"
    def copy_config_file
      copy_file "veritrans.yml", "config/veritrans.yml"
    end

    desc "copy initializer veritrans.rb"
    def copy_initializer_file
      copy_file "./veritrans.rb", "config/initializers/veritrans.rb"

say_status "", %{

We copy configs in your rails application
Please edit:

  config/veritrans.yml

}


    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritrans-2.1.3 lib/generators/veritrans/install_generator.rb
veritrans-2.1.2 lib/generators/veritrans/install_generator.rb
veritrans-2.1.1 lib/generators/veritrans/install_generator.rb
veritrans-2.1.0 lib/generators/veritrans/install_generator.rb