Ejemplo n.º 1
0
    def __init__(self):
        CLI.__init__(self)
        self.serverURL = ""
        self.serverName = ""
        self.modificator = None
        self.connected = False
        self.dirty = False
        self.root = "/"

        self.do_connect("")
Ejemplo n.º 2
0
 def __init__(self, vo=None):
     CLI.__init__(self)
     self.site = None
     self.endpoint = None
     self.project = None
     self.vmType = None
     self.vo = vo
     self.proxyLocation = None
     self.user = None
     self.password = None
Ejemplo n.º 3
0
    def __init__(self):
        CLI.__init__(self)
        self.serverURL = ""
        self.serverName = ""
        self.modificator = None
        self.connected = False
        self.dirty = False
        self.root = "/"

        self.do_connect("")
Ejemplo n.º 4
0
 def __init__(self):
     CLI.__init__(self)
     self.connected = False
     self.masterURL = "unset"
     self.writeEnabled = False
     self.modifiedData = False
     self.rpcClient = None
     self.do_connect()
     if self.connected:
         self.modificator = Modificator(self.rpcClient)
     else:
         self.modificator = Modificator()
     self.indentSpace = 20
     self.backupFilename = "dataChanges"
     # store history
     histfilename = os.path.basename(sys.argv[0])
     historyFile = os.path.expanduser("~/.dirac/%s.history" % histfilename[0:-3])
     mkDir(os.path.dirname(historyFile))
     if os.path.isfile(historyFile):
         readline.read_history_file(historyFile)
     readline.set_history_length(1000)
     atexit.register(readline.write_history_file, historyFile)
  def __init__( self, host = None ):

    CLI.__init__( self )
    # Check if Port is given
    self.host = None
    self.port = None
    self.prompt = '[%s]> ' % colorize( "no host", "yellow" )
    if host:
      self.__setHost( host )
    self.cwd = ''
    self.previous_cwd = ''
    self.homeDir = ''
    self.runitComponents = [ "service", "agent", "executor", "consumer" ]

    # store history
    histfilename = os.path.basename(sys.argv[0])
    historyFile = os.path.expanduser( "~/.dirac/%s.history" % histfilename[0:-3])
    mkDir(os.path.dirname(historyFile))
    if os.path.isfile( historyFile ):
      readline.read_history_file( historyFile )
    readline.set_history_length(1000)
    atexit.register( readline.write_history_file, historyFile )
Ejemplo n.º 6
0
  def __init__( self, host = None ):

    CLI.__init__( self )
    # Check if Port is given
    self.host = None
    self.port = None
    self.prompt = '[%s]> ' % colorize( "no host", "yellow" )
    if host:
      self.__setHost( host )
    self.cwd = ''
    self.previous_cwd = ''
    self.homeDir = ''
    self.runitComponents = [ "service", "agent", "executor", "consumer" ]

    # store history
    histfilename = os.path.basename(sys.argv[0])
    historyFile = os.path.expanduser( "~/.dirac/%s.history" % histfilename[0:-3])
    mkDir(os.path.dirname(historyFile))
    if os.path.isfile( historyFile ):
      readline.read_history_file( historyFile )
    readline.set_history_length(1000)
    atexit.register( readline.write_history_file, historyFile )
Ejemplo n.º 7
0
 def __init__( self ):
   CLI.__init__( self )
   self.connected = False
   self.masterURL = "unset"
   self.writeEnabled = False
   self.modifiedData = False
   self.rpcClient = None
   self.do_connect()
   if self.connected:
     self.modificator = Modificator ( self.rpcClient )
   else:
     self.modificator = Modificator()
   self.indentSpace = 20
   self.backupFilename = "dataChanges"
   # store history
   histfilename = os.path.basename(sys.argv[0])
   historyFile = os.path.expanduser( "~/.dirac/%s.history" % histfilename[0:-3])
   mkDir(os.path.dirname(historyFile))
   if os.path.isfile( historyFile ):
     readline.read_history_file( historyFile )
   readline.set_history_length(1000)
   atexit.register( readline.write_history_file, historyFile )
Ejemplo n.º 8
0
 def __init__( self ):
   CLI.__init__( self )
   self.do_connect( None )
   ExitCallback.registerExitCallback( self.do_quit )
Ejemplo n.º 9
0
 def __init__(self):
     CLI.__init__(self)
     self.do_connect(None)
Ejemplo n.º 10
0
 def __init__(self):
     CLI.__init__(self)
     self.do_connect(None)
     ExitCallback.registerExitCallback(self.do_quit)
Ejemplo n.º 11
0
 def do_help(self, args):
     """ Default version of the help command
    Usage: help <command>
    OR use helpall to see description for all commands"""
     CLI.do_help(self, args)
Ejemplo n.º 12
0
 def __init__(self):
     self.server = TransformationClient()
     self.indentSpace = 4
     CLI.__init__(self)
     API.__init__(self)
Ejemplo n.º 13
0
 def do_quit(self, _line):
     """quit
 Quit"""
     self.do_disconnect("")
     CLI.do_quit(self, _line)
Ejemplo n.º 14
0
 def do_quit(self, _line):
     """quit
 Quit"""
     self.do_disconnect("")
     CLI.do_quit(self, _line)
Ejemplo n.º 15
0
 def do_help( self, args ):
   """ Default version of the help command
      Usage: help <command>
      OR use helpall to see description for all commands"""
   CLI.do_help( self, args )
Ejemplo n.º 16
0
 def __init__( self ):
   self.transClient = TransformationClient()
   self.indentSpace = 4
   CLI.__init__( self )
   API.__init__( self )