module OneGadget::Logger

A logger for internal usage.

Public Instance Methods

ask_update(msg: '') click to toggle source

Show the message of ask user to update gem. @return [void]

# File lib/one_gadget/logger.rb, line 40
def ask_update(msg: '')
  name = 'one_gadget'
  cmd = OneGadget::Helper.colorize("gem update #{name} && gem cleanup #{name}")
  OneGadget::Logger.info("#{msg}\nUpdate with: $ #{cmd}\n")
end
not_found(build_id) click to toggle source

Show warning message of no such build id in database. @param [String] build_id

Build ID.
# File lib/one_gadget/logger.rb, line 33
def not_found(build_id)
  warn("Cannot find BuildID [#{build_id}]\n")
  []
end