Class: Pact::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pact/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#log_dirObject

Returns the value of attribute log_dir.



8
9
10
# File 'lib/pact/configuration.rb', line 8

def log_dir
  @log_dir
end

#loggerObject

Returns the value of attribute logger.



9
10
11
# File 'lib/pact/configuration.rb', line 9

def logger
  @logger
end

#pact_dirObject

Returns the value of attribute pact_dir.



7
8
9
# File 'lib/pact/configuration.rb', line 7

def pact_dir
  @pact_dir
end

#pactfile_write_modeObject



18
19
20
21
22
23
24
# File 'lib/pact/configuration.rb', line 18

def pactfile_write_mode
  if @pactfile_write_mode == :smart
    is_rake_running? ? :overwrite : :update
  else
    @pactfile_write_mode
  end
end

#reports_dirObject

Returns the value of attribute reports_dir.



11
12
13
# File 'lib/pact/configuration.rb', line 11

def reports_dir
  @reports_dir
end

#tmp_dirObject

Returns the value of attribute tmp_dir.



10
11
12
# File 'lib/pact/configuration.rb', line 10

def tmp_dir
  @tmp_dir
end

Instance Method Details

#log_pathObject



14
15
16
# File 'lib/pact/configuration.rb', line 14

def log_path
  log_dir + "/pact.log"
end