Method: Rex::Script::Base#run

Defined in:
lib/rex/script/base.rb

#run(args = []) ⇒ Object



41
42
43
44
45
46
47
48
49
50
51
# File 'lib/rex/script/base.rb', line 41

def run(args=[])
  self.args = args = args.flatten
  begin
    eval(::File.read(self.path, ::File.size(self.path)), binding )
  rescue ::Interrupt
  rescue ::Rex::Script::Completed
  rescue ::Exception => e
    self.error = e
    raise e
  end
end