Sha256: 9fb3d720b70d22c4154d23247920e2f104a5bc10fe8ec2c18de5ea773061a3ee

Contents?: true

Size: 201 Bytes

Versions: 6

Compression:

Stored size: 201 Bytes

Contents

module Attractor
  class RubyDetector < BaseDetector
    def detect
      gemfile_exists?
    end
    
    def gemfile_exists?
      File.exist? File.expand_path("Gemfile", Dir.pwd)
    end
  end 
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
attractor-ruby-0.3.0 lib/attractor/detectors/ruby_detector.rb
attractor-ruby-0.2.0 lib/attractor/detectors/ruby_detector.rb
attractor-ruby-0.1.0 lib/attractor/detectors/ruby_detector.rb
attractor-1.2.0 lib/attractor/detectors/ruby_detector.rb
attractor-1.1.1 lib/attractor/detectors/ruby_detector.rb
attractor-1.1.0 lib/attractor/detectors/ruby_detector.rb