class Plz::ErrorCommand
Public Class Methods
new(error)
click to toggle source
@param error [Plz::Error] Error
to show error message to user
# File lib/plz/error_command.rb, line 4 def initialize(error) @error = error end
Public Instance Methods
call()
click to toggle source
Logs out error reason and usage, then exits with error code 1
# File lib/plz/error_command.rb, line 9 def call puts "Error: #{@error}" exit(1) end