Class: ExcADG::Payload::Wrapper::Ruby

Inherits:
Bin
  • Object
show all
Defined in:
lib/excadg/payload/wrapper.rb

Overview

runs a ruby script behaves same as the Bin reg parameters and return data

Instance Attribute Summary

Attributes included from ExcADG::Payload

#args

Instance Method Summary collapse

Methods inherited from Bin

#get

Methods included from ExcADG::Payload

#get, #initialize

Instance Method Details

#sanitize(args) ⇒ Object



57
58
59
60
61
# File 'lib/excadg/payload/wrapper.rb', line 57

def sanitize args
  raise "arguments should be a String, got #{args}" unless args.is_a? String

  "ruby #{args}"
end