Sha256: 54458f76c0203fa3f88555475e89cdc5673572b53fc1f1f965ca73fd6c956e9d

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

# frozen_string_literal: true

module AnnotateRb
  class RakeBootstrapper
    class << self
      def call(options)
        require "rake"
        load "./Rakefile" if File.exist?("./Rakefile") && !Rake::Task.task_defined?(:environment)

        begin
          Rake::Task[:environment].invoke
        rescue
          nil
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
annotaterb-4.13.0 lib/annotate_rb/rake_bootstrapper.rb
annotaterb-4.12.0 lib/annotate_rb/rake_bootstrapper.rb
annotaterb-4.11.0 lib/annotate_rb/rake_bootstrapper.rb
annotaterb-4.10.2 lib/annotate_rb/rake_bootstrapper.rb