dark-prince/salesforce-rails

View on GitHub
lib/generators/salesforce/config/config_generator.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Salesforce
  module Generators
    class ConfigGenerator < ::Rails::Generators::Base
      desc 'This generator generate a Salesforce-Rails gem configuration file at config/salesforce.yml'
      source_root File.expand_path("../templates", __FILE__)

      def create_config_file
        copy_file 'salesforce.yml', File.join('config', 'salesforce.yml')
      end
    end
  end
end