Class: Pact::Configuration
- Inherits:
-
Object
- Object
- Pact::Configuration
- Defined in:
- lib/pact/configuration.rb
Instance Attribute Summary collapse
-
#log_dir ⇒ Object
Returns the value of attribute log_dir.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#pact_dir ⇒ Object
Returns the value of attribute pact_dir.
- #pactfile_write_mode ⇒ Object
-
#reports_dir ⇒ Object
Returns the value of attribute reports_dir.
-
#tmp_dir ⇒ Object
Returns the value of attribute tmp_dir.
Instance Method Summary collapse
Instance Attribute Details
#log_dir ⇒ Object
Returns the value of attribute log_dir.
8 9 10 |
# File 'lib/pact/configuration.rb', line 8 def log_dir @log_dir end |
#logger ⇒ Object
Returns the value of attribute logger.
9 10 11 |
# File 'lib/pact/configuration.rb', line 9 def logger @logger end |
#pact_dir ⇒ Object
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_mode ⇒ Object
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_dir ⇒ Object
Returns the value of attribute reports_dir.
11 12 13 |
# File 'lib/pact/configuration.rb', line 11 def reports_dir @reports_dir end |
#tmp_dir ⇒ Object
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_path ⇒ Object
14 15 16 |
# File 'lib/pact/configuration.rb', line 14 def log_path log_dir + "/pact.log" end |