Sha256: ee75361024025a951a229209f442c3db4c1a2f22aaa29511a6eddc5c16534997

Contents?: true

Size: 770 Bytes

Versions: 90

Compression:

Stored size: 770 Bytes

Contents

require "rake/application"

module Rake

  class << self
    # Current Rake Application
    def application
      @application ||= Rake::Application.new
    end

    # Set the current Rake application object.
    def application=(app)
      @application = app
    end

    def suggested_thread_count # :nodoc:
      @cpu_count ||= Rake::CpuCounter.count
      @cpu_count + 4
    end

    # Return the original directory where the Rake application was started.
    def original_dir
      application.original_dir
    end

    # Load a rakefile.
    def load_rakefile(path)
      load(path)
    end

    # Add files to the rakelib list
    def add_rakelib(*files)
      application.options.rakelib ||= []
      application.options.rakelib.concat(files)
    end
  end

end

Version data entries

90 entries across 83 versions & 19 rubygems

Version Path
cloudsmith-api-1.30.0 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.57.1 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.54.15 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.53.79 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.53.17 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.53.3 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
vagrant-unbundled-2.2.10.0 vendor/bundle/ruby/2.7.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.53.1 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.52.121 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.52.92 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
logstash-filter-csharp-0.2.1 vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb
logstash-filter-csharp-0.2.0 vendor/bundle/jruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.52.79 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.52.5 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.52.0 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.51.93 vendor/bundle/ruby/2.3.0/gems/rake-12.0.0/lib/rake/rake_module.rb
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.51.38 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.51.37 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb
cloudsmith-api-0.51.34 vendor/bundle/ruby/2.6.0/gems/rake-12.0.0/lib/rake/rake_module.rb