module Dopi::CommandParser::Exec
Public Instance Methods
exec()
click to toggle source
# File lib/dopi/command_parser/exec.rb, line 12 def exec exec_valid? ? hash[:exec] : nil end
validate_exec()
click to toggle source
# File lib/dopi/command_parser/exec.rb, line 8 def validate_exec log_validation_method('exec_valid?', CommandParsingError) end
Private Instance Methods
exec_valid?()
click to toggle source
# File lib/dopi/command_parser/exec.rb, line 18 def exec_valid? hash[:exec] or raise CommandParsingError, "#Step #{@step.name} | Plugin #{name} | No command to execute in 'exec' defined" hash[:exec].kind_of?(String) or raise CommandParsingError, "#Step #{@step.name} | Plugin #{name} | The value for 'exec' has to be a String" end