module DTK::Client::CLI::Command::Service::Violation
Public Class Methods
process_violations?(response)
click to toggle source
# File lib/cli/command/service/violation.rb, line 21 def self.process_violations?(response) if violations = response.data(:violations) OsUtil.print_error("Cannot execute an action or workflow if there are violations:") response.set_data(violations) response.data.flatten! response.set_render_as_table!.render_data Response::NotOk.new end end