lib/generators/pesapal/install_generator.rb in pesapal-1.5.6 vs lib/generators/pesapal/install_generator.rb in pesapal-1.6.0
- old
+ new
@@ -1,20 +1,21 @@
+# 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
- # 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
+ # Install pesapal generator
class InstallGenerator < Rails::Generators::Base
- source_root File.expand_path("../../templates", __FILE__)
+ source_root File.expand_path('../../templates', __FILE__)
- desc "Creates a Pesapal config file to your application."
+ desc 'Creates a Pesapal config file to your application.'
def copy_config
- copy_file "pesapal.yml", "config/pesapal.yml"
+ copy_file 'pesapal.yml', 'config/pesapal.yml'
end
def show_readme
- readme "README.md" if behavior == :invoke
+ readme 'README.md' if behavior == :invoke
end
end
end
end