Skip resource file processing when loaded via this interface

git-svn-id: file:///home/svn/framework3/trunk@8638 4d416f70-5f16-0410-b530-b9f4589650da
unstable
HD Moore 2010-02-25 16:29:48 +00:00
parent b2e40216b9
commit 51e5dcfed2
1 changed files with 12 additions and 10 deletions

View File

@ -55,12 +55,13 @@ class WebConsole
'LocalInput' => self.pipe,
'LocalOutput' => self.pipe,
'AllowCommandPassthru' => false,
'Resource' => [],
}
)
self.console.extend(WebConsoleShell)
self.console.block_command('irb')
self.thread = Thread.new { self.console.run }
update_access()
@ -96,34 +97,35 @@ class WebConsole
self.pipe.close
self.thread.kill
end
def busy
self.console.busy
end
def session_detach
if(self.console.active_session)
if(self.console.active_session)
self.console.active_session.detach()
end
end
def session_kill
if(self.console.active_session)
if(self.console.active_session)
self.console.active_session.kill()
end
end
end
def active_module
self.console.active_module
end
def active_module=(val)
self.console.active_module = val
end
end
end
end
end
end