class Fastlane::Plugin::GitHubStatus::UI

Constants

FastlaneUI
STATUS_TO_COLOR

Public Instance Methods

abort!(text) click to toggle source
# File lib/fastlane/plugin/github_status/ui.rb, line 20
def abort!(text)
  FastlaneUI.user_error!(text)
end
colorize_for_status(status, message) click to toggle source
# File lib/fastlane/plugin/github_status/ui.rb, line 29
def colorize_for_status(status, message)
  color = STATUS_TO_COLOR[status]
  message.send(color) if color
end
print_message(message) click to toggle source
status_statement(message) click to toggle source
# File lib/fastlane/plugin/github_status/ui.rb, line 24
def status_statement(message)
  status = message.status
  colorize_for_status(status, "#{status.upcase} - #{message.body}")
end