(self)
return output
Get the current working crontab cronfile content.
Get the current working crontab cronfile content.
Get the current working crontab cronfile content .
def read_crontab(self):
        """Get the current working crontab cronfile content."""
        command = ['crontab', '-l']
        if self.user:
            command.extend(["-u", str(self.user)])
        try:
            r = communicate_process(command, universal_newlines=True)
            output, error, returncode = r
            if returncode != 0:
                raise PlanError("couldn't read crontab")
        except OSError:
            raise PlanError("couldn't read crontab; please make sure you "
                            "have crontab installed")
        return output
def read_crontab ( self ) : command = [ 'crontab' , '-l' ] if self . user : command . extend ( [ "-u" , str ( self . user ) ] ) try : r = communicate_process ( command , universal_newlines = True ) output , error , returncode = r if returncode != 0 : raise PlanError ( "couldn't read crontab" ) except OSError : raise PlanError ( "couldn't read crontab; please make sure you " "have crontab installed" ) return output