Class: Retest::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/retest/setup.rb

Instance Method Summary collapse

Instance Method Details

#typeObject



3
4
5
6
7
8
9
10
11
12
13
# File 'lib/retest/setup.rb', line 3

def type
  @type ||= begin
    return :ruby unless has_lock_file?

    if    rspec? then :rspec
    elsif rails? then :rails
    elsif rake?  then :rake
    else              :ruby
    end
  end
end