lib/pah/partials/_generators.rb in pah-0.0.12 vs lib/pah/partials/_generators.rb in pah-0.0.13
- old
+ new
@@ -1,7 +1,5 @@
-puts "Adding generators... ".magenta
-
generators = <<GENERATORS
# Do not generate specs for views and requests. Also, do not generate assets.
config.generators do |g|
g.helper false
@@ -19,8 +17,7 @@
in_root do
inject_into_file 'config/application.rb', generators, {after: "Rails::Application", verbose: false}
end
-git :add => 'config/application.rb'
-git :commit => "-qm 'Adding generators.'"
-
+git add: 'config/application.rb'
+git_commit 'Add generators.'