# File lib/rex/script/base.rb, line 16 def initialize(client, path) self.client = client self.framework = client.framework self.path = path self.sink = OutputSink.new if(client.framework.db and client.framework.db.active) self.workspace = client.framework.db.find_workspace( client.workspace.to_s ) || client.framework.db.workspace end # Convenience aliases self.session = self.client end
# File lib/rex/script/base.rb, line 34 def completed raise Rex::Script::Completed end
# File lib/rex/script/base.rb, line 30 def output client.user_output || self.sink end
# File lib/rex/script/base.rb, line 50 def print(*args); output.print(*args); end
# File lib/rex/script/base.rb, line 52 def print_error(*args); output.print_error(*args); end
# File lib/rex/script/base.rb, line 53 def print_good(*args); output.print_good(*args); end
# File lib/rex/script/base.rb, line 54 def print_line(*args); output.print_line(*args); end
Generated with the Darkfish Rdoc Generator 2.