Method: Panoramix.run_custom_task

Defined in:
lib/panoramix/panoramix_core.rb

.run_custom_task(instance, name) ⇒ Object



35
36
37
38
39
40
41
42
# File 'lib/panoramix/panoramix_core.rb', line 35

def run_custom_task(instance, name)
  method = instance.method(name.to_sym)
  begin
    method.call
  rescue Panoramix::Plugin::ValidationError => e
    puts "Validation error: #{e.message}".red
  end
end