Sha256: ee4af2dddae41b9ae034452c69b90f2f3370f11080ec08e98de823ea009bb3b5
Contents?: true
Size: 843 Bytes
Versions: 5
Compression:
Stored size: 843 Bytes
Contents
# Don't load anything when running the gems:* tasks. # Otherwise, zenbox will be considered a framework gem. # https://thoughtbot.lighthouseapp.com/projects/14221/tickets/629 unless ARGV.any? {|a| a =~ /^gems/} Dir[File.join(Rails.root, 'vendor', 'gems', 'zenbox-*')].each do |vendored_notifier| $: << File.join(vendored_notifier, 'lib') end begin require 'zenbox/tasks' rescue LoadError => exception namespace :zenbox do %w(deploy test log_stdout).each do |task_name| desc "Missing dependency for zenbox:#{task_name}" task task_name do $stderr.puts "Failed to run zenbox:#{task_name} because of missing dependency." $stderr.puts "You probably need to run `rake gems:install` to install the zenbox gem" abort exception.inspect end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems