Package iceprod :: Package client :: Module commands :: Class clean
[hide private]
[frames] | no frames]

Class clean

source code

object --+    
         |    
   Command --+
             |
            clean

Command: clean <dataset_id>

Clean a dataset.
Can clean multiple datasets at once.

Arguments:
  <dataset_id>  Specify the dataset to clean.
  
Returns:
  Returns the result of the mysql query (success or failure).
  Warning that if the dataset is wrong it will likely
  print success because there was no mysql error.
  
Examples:
  Clean single dataset  (dataset 1234)
     clean 1234
  
  Clean multiple datasets using commas
  (datasets 1234, 1243)
     clean 1234,1243
  
  Clean multile datasets using ranges
  (datasets 1234 - 1235)
     clean 1234-1235
 

Instance Methods [hide private]
 
Execute(self, shell) source code
 
_clean(self, shell, dataset) source code

Inherited from Command: CheckArgs

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  shortdoc = 'clean <dataset_id> : Clean a dataset.'
hash(x)
  numArgs = 1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

Execute(self, shell)

source code 
Overrides: Command.Execute