Module PluginRunner :: Class Interpreter
[hide private]
[frames] | no frames]

Class Interpreter

source code

cmd.Cmd --+
          |
         Interpreter

Instance Methods [hide private]
 
__init__(self, histfile)
Instantiate a line-oriented interpreter framework.
source code
 
cmdloop(self, handle_exceptions=False, intro=None)
Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.
source code
 
get_names(self) source code
 
completenames(self, text, line, begidx, endidx) source code
 
preloop(self)
Hook method executed once when the cmdloop() method is called.
source code
 
postloop(self)
Hook method executed once when the cmdloop() method is about to return.
source code
 
precmd(self, line)
Hook method executed just before the command line is interpreted, but after the input prompt is generated and issued.
source code
 
postcmd(self, stop, line)
Hook method executed just after a command dispatch is finished.
source code
 
emptyline(self)
Called when an empty line is entered in response to the prompt.
source code
 
default(self, line)
Called on an input line when the command prefix is not recognized.
source code
 
do_hist(self, args)
Print the list of commands that have been entered
source code
 
do_exit(self, args)
Exit from the interpreter
source code
 
do_quit(self, args)
Quit from the interpreter
source code
 
do_help(self, args)
Get help on commands 'help' or '?' with no arguments prints a list of commands for which help is available 'help <command>' or '? <command>' gives help on the specific <command>
source code
 
do_EOF(self, args)
Exit from the interpreter
source code
 
do_script(self, line)
Execute a script (Same as @@)
source code
 
help_atsign(self)
Execute script duplicating logs to terminal for monitoring
source code
 
help_atatsign(self)
Execute script without duplicating logging to terminal
source code
 
help_script(self)
Execute script without duplicating logging to terminal
source code
 
help_logger(self)
Log the text to the log file
source code
 
help_getPlugin(self) source code
 
setLogger(self, logger) source code
 
getPlugin(self, plugin_impl_name) source code
 
setAdminHostName(self, admin_host) source code
 
setAdminUserName(self, admin_user) source code
 
setAdminPassword(self, admin_pass) source code
 
setExtraInfo(self, extra_info) source code
 
setAccessHostName(self, access_host) source code
 
setUserName(self, user_name) source code
 
setPassword(self, password) source code
 
setCHAPMode(self, chap_mode) source code
 
setStorageType(self, storage_type) source code
 
setVolumeGroupName(self, vol_group_name) source code
 
setPluginImplName(self, plugin_impl_name) source code
 
setScriptOptions(self, scriptOptions) source code
 
setOKToRun(self, noQuestionsAsked) source code

Inherited from cmd.Cmd: columnize, complete, complete_help, completedefault, onecmd, parseline, print_topics

Class Variables [hide private]

Inherited from cmd.Cmd: doc_header, doc_leader, identchars, intro, lastcmd, misc_header, nohelp, prompt, ruler, undoc_header, use_rawinput

Method Details [hide private]

__init__(self, histfile)
(Constructor)

source code 

Instantiate a line-oriented interpreter framework.

The optional argument 'completekey' is the readline name of a completion key; it defaults to the Tab key. If completekey is not None and the readline module is available, command completion is done automatically. The optional arguments stdin and stdout specify alternate input and output file objects; if not specified, sys.stdin and sys.stdout are used.

Overrides: cmd.Cmd.__init__
(inherited documentation)

cmdloop(self, handle_exceptions=False, intro=None)

source code 

Repeatedly issue a prompt, accept input, parse an initial prefix off the received input, and dispatch to action methods, passing them the remainder of the line as argument.

Overrides: cmd.Cmd.cmdloop
(inherited documentation)

get_names(self)

source code 
Overrides: cmd.Cmd.get_names

completenames(self, text, line, begidx, endidx)

source code 
Overrides: cmd.Cmd.completenames

preloop(self)

source code 

Hook method executed once when the cmdloop() method is called.

Overrides: cmd.Cmd.preloop
(inherited documentation)

postloop(self)

source code 

Hook method executed once when the cmdloop() method is about to return.

Overrides: cmd.Cmd.postloop
(inherited documentation)

precmd(self, line)

source code 

Hook method executed just before the command line is interpreted, but after the input prompt is generated and issued.

Overrides: cmd.Cmd.precmd
(inherited documentation)

postcmd(self, stop, line)

source code 

Hook method executed just after a command dispatch is finished.

Overrides: cmd.Cmd.postcmd
(inherited documentation)

emptyline(self)

source code 

Called when an empty line is entered in response to the prompt.

If this method is not overridden, it repeats the last nonempty command entered.

Overrides: cmd.Cmd.emptyline
(inherited documentation)

default(self, line)

source code 

Called on an input line when the command prefix is not recognized.

If this method is not overridden, it prints an error message and returns.

Overrides: cmd.Cmd.default
(inherited documentation)

do_help(self, args)

source code 

Get help on commands 'help' or '?' with no arguments prints a list of commands for which help is available 'help <command>' or '? <command>' gives help on the specific <command>

Overrides: cmd.Cmd.do_help