Module: RSpeed::Env

Defined in:
lib/rspeed/env.rb

Class Method Summary collapse

Class Method Details

.appObject



7
8
9
# File 'lib/rspeed/env.rb', line 7

def app
  ENV['RSPEED_APP']
end

.dbObject



11
12
13
# File 'lib/rspeed/env.rb', line 11

def db
  ENV['RSPEED_DB']&.to_i
end

.hostObject



15
16
17
# File 'lib/rspeed/env.rb', line 15

def host
  ENV['RSPEED_HOST']
end

.pipeObject



19
20
21
# File 'lib/rspeed/env.rb', line 19

def pipe
  ENV.fetch('RSPEED_PIPE', 1).to_i
end

.pipesObject



23
24
25
# File 'lib/rspeed/env.rb', line 23

def pipes
  ENV.fetch('RSPEED_PIPES', 1).to_i
end

.portObject



27
28
29
# File 'lib/rspeed/env.rb', line 27

def port
  ENV['RSPEED_PORT']&.to_i
end

.rspeedObject



31
32
33
# File 'lib/rspeed/env.rb', line 31

def rspeed
  ENV['RSPEED'] == 'true'
end

.spec_pathObject



35
36
37
# File 'lib/rspeed/env.rb', line 35

def spec_path
  ENV.fetch('RSPEED_SPEC_PATH', './spec/**/*spec.rb')
end