Sha256: a3c23423ef27df64434a657acdb7b4c1211e4b7c521cdd3ed54ca242e888bb01
Contents?: true
Size: 690 Bytes
Versions: 9
Compression:
Stored size: 690 Bytes
Contents
if defined? Rails begin require 'traceroute' namespace :bake do Rake::Task["traceroute"].invoke end rescue LoadError tasks = %w[ traceroute ] namespace :bake do tasks.map(&:to_sym).each do |t| desc 'Traceroute is not available (gem not installed)' task t do RakeNBake::Baker.log_missing_gem 'traceroute' abort end end end end else tasks = %w[ traceroute ] namespace :bake do tasks.map(&:to_sym).each do |t| desc 'Traceroute is not available Rails is required' task t do RakeNBake::Baker.log_warn 'Traceroute requires rails' abort end end end end
Version data entries
9 entries across 9 versions & 1 rubygems