예제 #1
0
    def exec2(self, command):
        """
        Run a command inside the container.

        ::

            from fabtools.require.openvz import container

            with container('foo') as ct:
                res = ct.exec2('hostname')

        .. warning:: the command will be run as **root**.

        """
        return vz.exec2(self.ctid, command)
예제 #2
0
    def exec2(self, command):
        """
        Run a command inside the container.

        ::

            from fabtools.require.openvz import container

            with container('foo') as ct:
                res = ct.exec2('hostname')

        .. warning:: the command will be run as **root**.

        """
        return vz.exec2(self.ctid, command)
예제 #3
0
파일: container.py 프로젝트: LucsT/fabtools
 def exec2(self, command):
     return vz.exec2(self.ctid, command)