Class: Attractor::RubyDetector

Inherits:
BaseDetector
  • Object
show all
Defined in:
lib/attractor/detectors/ruby_detector.rb

Instance Method Summary collapse

Instance Method Details

#detectObject



3
4
5
# File 'lib/attractor/detectors/ruby_detector.rb', line 3

def detect
  gemfile_exists?
end

#gemfile_exists?Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/attractor/detectors/ruby_detector.rb', line 7

def gemfile_exists?
  File.exist? File.expand_path("Gemfile", Dir.pwd)
end