Class: Purobu::Configuration
- Inherits:
-
Object
- Object
- Purobu::Configuration
- Includes:
- Helpers::HelpersHelper, Singleton
- Defined in:
- lib/purobu/configuration.rb
Instance Attribute Summary collapse
-
#files ⇒ Object
Which test files to run.
-
#heroku_api_key ⇒ Object
Heroku api key to be used by the heroku-api client.
-
#thread_count ⇒ Object
Concurrency.
-
#verbose ⇒ Object
Run verbosely.
Class Method Summary collapse
- .method_missing(method) ⇒ Object
- .respond_to?(method) ⇒ Boolean
- .run {|self.instance| ... } ⇒ Object
Instance Method Summary collapse
Methods included from Helpers::HelpersHelper
Instance Attribute Details
#files ⇒ Object
Which test files to run
14 15 16 |
# File 'lib/purobu/configuration.rb', line 14 def files @files end |
#heroku_api_key ⇒ Object
Heroku api key to be used by the heroku-api client
17 18 19 |
# File 'lib/purobu/configuration.rb', line 17 def heroku_api_key @heroku_api_key end |
#thread_count ⇒ Object
Concurrency
11 12 13 |
# File 'lib/purobu/configuration.rb', line 11 def thread_count @thread_count end |
#verbose ⇒ Object
Run verbosely
8 9 10 |
# File 'lib/purobu/configuration.rb', line 8 def verbose @verbose end |
Class Method Details
.method_missing(method) ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/purobu/configuration.rb', line 42 def method_missing(method) if self.instance.respond_to?(method) self.instance.send(method) else super end end |
.respond_to?(method) ⇒ Boolean
50 51 52 |
# File 'lib/purobu/configuration.rb', line 50 def respond_to?(method) self.instance.respond_to?(method) || super end |
.run {|self.instance| ... } ⇒ Object
35 36 37 38 39 |
# File 'lib/purobu/configuration.rb', line 35 def self.run(&block) self.instance.heroku_api_key = ENV['HEROKU_API_KEY'] yield self.instance end |
Instance Method Details
#global_setup(&block) ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/purobu/configuration.rb', line 19 def global_setup(&block) if block_given? @global_setup = block else @global_setup end end |
#global_teardown(&block) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/purobu/configuration.rb', line 27 def global_teardown(&block) if block_given? @global_teardown = block else @global_teardown end end |