lib/pah/partials/_secure_headers.rb in pah-0.0.12 vs lib/pah/partials/_secure_headers.rb in pah-0.0.13
- old
+ new
@@ -1,6 +1,5 @@
-puts "Adding secure headers... ".magenta
content = <<EOF
ensure_security_headers # See more: https://github.com/twitter/secureheaders
EOF
in_root do
@@ -15,9 +14,8 @@
config.x_xss_protection = {:value => 1, :mode => 'block'}
config.csp = false
end
EOF
end
-git :add => 'app/controllers/application_controller.rb'
-git :commit => "-qm 'Adding secure headers.'"
-
-puts "\n"
+git add: 'app/controllers/application_controller.rb'
+git add: 'config/initializers/secure_headers.rb'
+git_commit 'Add secure headers.'