Sha256: ec1decfb4432bd91031edadfa24afe40762a4ab9f9898b6c3b346b4ea79d2c12

Contents?: true

Size: 581 Bytes

Versions: 4

Compression:

Stored size: 581 Bytes

Contents

require "rails/railtie"
module Lobot
  class Railtie < Rails::Railtie

    config.before_configuration do
      old_lobot_rakefile = ::Rails.root.join('lib', 'tasks', 'ci.rake')
      if old_lobot_rakefile.exist? && !ENV["USE_CI_RAKE"]
        puts %Q{
            You no longer need to have ci.rake in your project, as it is now automatically loaded
            from the Lobot gem. To silence this warning, set "USE_CI_RAKE=true" in your environment
            or remove ci.rake.
          }
      end
    end

    rake_tasks do
      load "lobot/tasks/ci.rake"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lobot-0.9.7 lib/lobot/railtie.rb
lobot-0.9.6 lib/lobot/railtie.rb
lobot-0.9.5 lib/lobot/railtie.rb
lobot-0.9.4 lib/lobot/railtie.rb