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
# File lib/fastlane/plugin/github_status/ui.rb, line 13 def print_message(message) FastlaneUI.message '🐙 🐱' FastlaneUI.message "GitHub status is: #{status_statement(message)}" FastlaneUI.message "Last updated: #{message.created_on}" FastlaneUI.message '🐙 🐱' end
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