class Environments
Public Class Methods
new()
click to toggle source
# File lib/flakyci_rspec/environments.rb, line 10 def initialize @env = init_env() end
Public Instance Methods
get_env()
click to toggle source
# File lib/flakyci_rspec/environments.rb, line 13 def get_env @env.get_infos() end
init_env()
click to toggle source
# File lib/flakyci_rspec/environments.rb, line 17 def init_env if Github.is_github?() Environments::Github.new() elsif CircleCi.is_circle_ci?() Environments::CircleCi.new() elsif TravisCi.is_travis_ci?() Environments::TravisCi.new() elsif Codeship.is_codeship?() Environments::Codeship.new() elsif Drone.is_drone?() Environments::Drone.new() elsif Gitlab.is_gitlab?() Environments::Gitlab.new() else Environments::Local.new() end end