Class: LastHit::Configure

Inherits:
Object
  • Object
show all
Defined in:
lib/last_hit/configure.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.base_branchObject

Returns the value of attribute base_branch.



11
12
13
# File 'lib/last_hit/configure.rb', line 11

def base_branch
  @base_branch
end

.test_commandObject

Returns the value of attribute test_command.



11
12
13
# File 'lib/last_hit/configure.rb', line 11

def test_command
  @test_command
end

Class Method Details

.set(config) ⇒ Object



13
14
15
16
# File 'lib/last_hit/configure.rb', line 13

def set(config)
  @test_command = config['test_command'] if config['test_command']
  @base_branch = config['base_branch'] if config['base_branch']
end