Sha256: bf0984a0a67701c36dd961e4129660b8da2d2f1a8187bb8cfb8ddb3b37cf25f6

Contents?: true

Size: 582 Bytes

Versions: 6

Compression:

Stored size: 582 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

6 entries across 6 versions & 1 rubygems

Version Path
lobot-2.0.0pre lib/lobot/railtie.rb
lobot-1.0.pre lib/lobot/railtie.rb
lobot-0.10.3 lib/lobot/railtie.rb
lobot-0.10.2 lib/lobot/railtie.rb
lobot-0.10.1 lib/lobot/railtie.rb
lobot-0.10.0 lib/lobot/railtie.rb