lib/capones_recipes/tasks/airbrake/setup.rb in capones_recipes-1.1.1 vs lib/capones_recipes/tasks/airbrake/setup.rb in capones_recipes-1.2.0

- old
+ new

@@ -4,11 +4,12 @@ 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') - put Utilities.init_file(initializer_template, "<%%>", api_key), "#{shared_path}/config/initializers/airbrake.rb" end + utilities.init_file(initializer_template, "<%%>", api_key, "#{shared_path}/config/initializers/airbrake.rb") + end end end \ No newline at end of file