class Buildkite::Env

Constants

BUILDKITE
PREFIX

Public Class Methods

load(env) click to toggle source
# File lib/buildkite/env.rb, line 27
def self.load(env)
  new(env) if env[BUILDKITE]
end
new(env) click to toggle source
# File lib/buildkite/env.rb, line 31
def initialize(env)
  @env = env
end

Public Instance Methods

default_branch?() click to toggle source
# File lib/buildkite/env.rb, line 35
def default_branch?
  pipeline_default_branch == branch
end
pull_request() click to toggle source
Calls superclass method
# File lib/buildkite/env.rb, line 39
def pull_request
  super == 'false' ? false : Integer(super)
end