Exemplo n.º 1
0
 def do_share(self, args):
     input_share = args.split()
     if (len(input_share) > 0):
         sn_console = ShareNFSConsole(input_share[0])
         if (len(input_share) > 1):
             sn_console.onecmd(' '.join(input_share[1:]))
         else:
             sn_console.cmdloop()
Exemplo n.º 2
0
 def do_share(self, args):
     input_share = args.split()
     if (len(input_share) > 0):
         sn_console = ShareNFSConsole(input_share[0])
         if (len(input_share) > 1):
             sn_console.onecmd(' '.join(input_share[1:]))
         else:
             sn_console.cmdloop()
 def do_nfs(self, args):
     """
     nfs operations on the share
     """
     sn_console = ShareNFSConsole(self.greeting, self.share)
     sn_console.cmdloop()
 def do_nfs(self, args):
     """
     nfs operations on the share
     """
     sn_console = ShareNFSConsole(self.greeting, self.share)
     sn_console.cmdloop()