Sha256: ef09ce1b61e31a83d137ba3204c5f5956c73a4dba4f04134bb477b99858d6c64
Contents?: true
Size: 631 Bytes
Versions: 3
Compression:
Stored size: 631 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../utilities') Capistrano::Configuration.instance(:must_exist).load do 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.', '') 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 end end
Version data entries
3 entries across 3 versions & 1 rubygems