Sha256: 80ea15abf0dd442e2bd6378aa52b7f67cca62d8acc4b99ff1cd9b86bd44d9097

Contents?: true

Size: 502 Bytes

Versions: 34

Compression:

Stored size: 502 Bytes

Contents

module Scout
  module Environment
    def self.bundler?
      ENV['BUNDLE_BIN_PATH'] && ENV['BUNDLE_GEMFILE']
    end

    def self.rvm?
      ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm')
    end

    def self.rvm_path
      rvm_path = `rvm env --path`
      $?.exitstatus == 0 ? rvm_path : false
    end

    def self.rvm_path_instructions
      self.rvm_path || "[PATH TO RVM ENVIRONMENT FILE]"
    end

    def self.old_rvm_version?
      self.rvm? && !self.rvm_path
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
scout-5.9.13 lib/scout/environment.rb
scout-5.9.12 lib/scout/environment.rb
scout-5.9.11 lib/scout/environment.rb
scout-5.9.10.pre lib/scout/environment.rb
scout-5.9.8 lib/scout/environment.rb
scout-5.9.7.2.pre lib/scout/environment.rb
scout-5.9.8.pre lib/scout/environment.rb
scout-5.9.7.1 lib/scout/environment.rb
scout-5.9.7.pre lib/scout/environment.rb
scout-5.9.5 lib/scout/environment.rb
scout-5.9.4 lib/scout/environment.rb
scout-5.9.4.pre lib/scout/environment.rb
scout-5.9.3 lib/scout/environment.rb
scout-5.9.2 lib/scout/environment.rb
scout-5.9.1 lib/scout/environment.rb
scout-5.9.1.pre lib/scout/environment.rb
scout-5.9.0 lib/scout/environment.rb
scout-5.9.0.pre lib/scout/environment.rb
scout-5.8.9 lib/scout/environment.rb
scout-5.8.8 lib/scout/environment.rb