Module: BorderPatrol
- Extended by:
- BorderPatrol
- Included in:
- BorderPatrol
- Defined in:
- lib/border-patrol.rb,
lib/border_patrol/version.rb,
lib/border_patrol/configuration.rb
Defined Under Namespace
Classes: Configuration
Constant Summary collapse
- VERSION =
'0.1.15'.freeze
Instance Attribute Summary collapse
-
#configuration ⇒ Object
Returns the value of attribute configuration.
Instance Method Summary collapse
Instance Attribute Details
#configuration ⇒ Object
Returns the value of attribute configuration.
8 9 10 |
# File 'lib/border-patrol.rb', line 8 def configuration @configuration end |
Instance Method Details
#configure {|configuration| ... } ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/border-patrol.rb', line 10 def configure self.configuration ||= Configuration.new yield configuration if block_given? # Don't perform the tests in console mode, unless requested. return if console? && configuration.ignore_console # Don't perform the tests during rake tasks. return if rake? # Perform initial test. abort_if_pending # Unless requested otherwise, start polling for new migrations and if new migrations were pended # indeed - terminate the server. start if configuration.terminate end |