Module: RSpeed::Env
- Defined in:
- lib/rspeed/env.rb
Class Method Summary collapse
- .app ⇒ Object
- .db ⇒ Object
- .host ⇒ Object
- .pipe ⇒ Object
- .pipes ⇒ Object
- .port ⇒ Object
- .rspeed ⇒ Object
- .spec_path ⇒ Object
Class Method Details
.app ⇒ Object
7 8 9 |
# File 'lib/rspeed/env.rb', line 7 def app ENV['RSPEED_APP'] end |
.db ⇒ Object
11 12 13 |
# File 'lib/rspeed/env.rb', line 11 def db ENV['RSPEED_DB']&.to_i end |
.host ⇒ Object
15 16 17 |
# File 'lib/rspeed/env.rb', line 15 def host ENV['RSPEED_HOST'] end |
.pipe ⇒ Object
19 20 21 |
# File 'lib/rspeed/env.rb', line 19 def pipe ENV.fetch('RSPEED_PIPE', 1).to_i end |
.pipes ⇒ Object
23 24 25 |
# File 'lib/rspeed/env.rb', line 23 def pipes ENV.fetch('RSPEED_PIPES', 1).to_i end |
.port ⇒ Object
27 28 29 |
# File 'lib/rspeed/env.rb', line 27 def port ENV['RSPEED_PORT']&.to_i end |
.rspeed ⇒ Object
31 32 33 |
# File 'lib/rspeed/env.rb', line 31 def rspeed ENV['RSPEED'] == 'true' end |
.spec_path ⇒ Object
35 36 37 |
# File 'lib/rspeed/env.rb', line 35 def spec_path ENV.fetch('RSPEED_SPEC_PATH', './spec/**/*spec.rb') end |