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