Class: Retest::Command

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/retest/command.rb,
lib/retest/command/base.rb,
lib/retest/command/rake.rb,
lib/retest/command/ruby.rb,
lib/retest/command/rails.rb,
lib/retest/command/rspec.rb,
lib/retest/command/hardcoded.rb

Defined Under Namespace

Classes: AllTestsNotSupported, Base, Hardcoded, MultipleTestsNotSupported, Rails, Rake, Rspec, Ruby

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options: Options.new, setup: Setup.new) ⇒ Command

Returns a new instance of Command.



19
20
21
22
23
# File 'lib/retest/command.rb', line 19

def initialize(options: Options.new, setup: Setup.new)
  @options = options
  @setup = setup
  @setup_identified = nil
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



18
19
20
# File 'lib/retest/command.rb', line 18

def options
  @options
end

#setupObject

Returns the value of attribute setup.



18
19
20
# File 'lib/retest/command.rb', line 18

def setup
  @setup
end

#setup_identifiedObject

Returns the value of attribute setup_identified.



18
19
20
# File 'lib/retest/command.rb', line 18

def setup_identified
  @setup_identified
end

Class Method Details

.for_options(options) ⇒ Object



12
13
14
# File 'lib/retest/command.rb', line 12

def self.for_options(options)
  new(options: options).command
end

Instance Method Details

#commandObject



25
26
27
# File 'lib/retest/command.rb', line 25

def command
  options_command || setup_command
end