Module: Prospector::ClassMethods
- Included in:
- Prospector
- Defined in:
- lib/prospector.rb
Instance Method Summary collapse
- #configuration ⇒ Object
- #configure {|configuration| ... } ⇒ Object
- #enabled? ⇒ Boolean
- #notify! ⇒ Object
Instance Method Details
#configuration ⇒ Object
28 29 30 |
# File 'lib/prospector.rb', line 28 def configuration @configuration ||= Configuration.new end |
#configure {|configuration| ... } ⇒ Object
32 33 34 |
# File 'lib/prospector.rb', line 32 def configure yield(configuration) end |
#enabled? ⇒ Boolean
36 37 38 |
# File 'lib/prospector.rb', line 36 def enabled? configuration.enabled? end |
#notify! ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'lib/prospector.rb', line 40 def notify! raise NotEnabledError unless enabled? configuration.notify! specifications = Bundler.environment.specs Client.deliver(specifications) end |