class Compote::UndefinedCommandError

Public Class Methods

new( service_name:, command_name:, config: ) click to toggle source
Calls superclass method
# File lib/compote/error.rb, line 132
def initialize ( service_name:, command_name:, config: )

  message = "Error running compote command: Can't find command named \#{ command_name }\" for service \"#{ service_name }\" in config \"#{ config.file_name }\"."

  message += "\n" + "Seems that config doesn't have a service with such name." unless config.has_service_config? service_name

  super message

end