lib/capones_recipes/tasks/airbrake/setup.rb in capones_recipes-1.2.0 vs lib/capones_recipes/tasks/airbrake/setup.rb in capones_recipes-1.2.2
- old
+ new
@@ -4,12 +4,11 @@
after "deploy:setup", "airbrake:setup"
namespace :airbrake do
desc "Creates the air brake initializer with the custom API key."
task :setup do
- api_key = utilities.ask('Please insert the API key.', '')
+ api_key = Utilities.ask('Please insert the API key.', '')
run "mkdir -p #{shared_path}/config/initializers"
initializer_template = File.expand_path(File.dirname(__FILE__) + '/templates/airbrake.rb')
- utilities.init_file(initializer_template, "<%%>", api_key, "#{shared_path}/config/initializers/airbrake.rb")
- end
+ put Utilities.init_file(initializer_template, "<%%>", api_key), "#{shared_path}/config/initializers/airbrake.rb" end
end
end
\ No newline at end of file