Module: Status

Extended by:
Status
Included in:
Status
Defined in:
lib/status.rb,
lib/status/base.rb,
lib/status/config.rb,
lib/status/jenkins.rb,
lib/status/request.rb,
lib/status/request.rb,
lib/status/request.rb,
lib/status/request.rb,
lib/status/github/statuses.rb,
lib/status/github/pull_request.rb

Defined Under Namespace

Modules: Github Classes: Base, CiRequest, Config, GithubRequest, Jenkins, NotFoundException, Request

Instance Method Summary collapse

Instance Method Details

#ci_passwordObject



49
50
51
# File 'lib/status.rb', line 49

def ci_password
  Status.config.parsed[:password]
end

#ci_urlObject



41
42
43
# File 'lib/status.rb', line 41

def ci_url
  Status.config.parsed[:ci_url]
end

#ci_userObject



45
46
47
# File 'lib/status.rb', line 45

def ci_user
  Status.config.parsed[:username]
end

#configObject



25
26
27
# File 'lib/status.rb', line 25

def config
  @config ||= Status::Config.new
end

#ownerObject



37
38
39
# File 'lib/status.rb', line 37

def owner
  Status.config.parsed[:owner]
end

#qa_required?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/status.rb', line 53

def qa_required?
  Status.config.parsed[:qa_required].nil? ? true : Status.config.parsed[:qa_required]
end

#repoObject



33
34
35
# File 'lib/status.rb', line 33

def repo
  Status.config.parsed[:repo]
end

#system_call(cmd) ⇒ Object



57
58
59
# File 'lib/status.rb', line 57

def system_call(cmd)
  `#{cmd}`
end

#system_warn(cmd) ⇒ Object



61
62
63
# File 'lib/status.rb', line 61

def system_warn(cmd)
  Kernel.warn cmd
end

#tokenObject



29
30
31
# File 'lib/status.rb', line 29

def token
  Status.config.parsed[:token]
end