コード例 #1
0
    def run(self, options):
        "Run a command using your application's environment"
        self.read_env(options)

        cmd = ' '.join(options.command)
        p = Process(cmd, stdout=sys.stdout)
        p.wait()
コード例 #2
0
ファイル: command.py プロジェクト: alej0varas/honcho
    def run(self, options):
        "Run a command using your application's environment"
        self.read_env(options)

        cmd = ' '.join(options.command)
        p = Process(cmd, stdout=sys.stdout)
        p.wait()
コード例 #3
0
ファイル: command.py プロジェクト: SERGIOPICA/honcho
    def run(self, options):
        "Run a command using your application's environment"
        self.set_env(self.read_env(options))

        cmd = ' '.join(shellquote(arg) for arg in options.command)
        p = Process(cmd, stdout=sys.stdout, stderr=sys.stderr)
        p.wait()
コード例 #4
0
ファイル: command.py プロジェクト: ihatehandles/honcho
    def run(self, options):
        "Run a command using your application's environment"
        self.set_env(self.read_env(options))

        if compat.ON_WINDOWS:
            # do not quote on Windows, subprocess will handle it for us
            # using the MSFT quoting rules
            cmd = options.command
        else:
            cmd = ' '.join(shellquote(arg) for arg in options.command)

        p = Process(cmd, stdout=sys.stdout, stderr=sys.stderr)
        p.wait()
コード例 #5
0
    def run(self, options):
        "Run a command using your application's environment"
        self.set_env(self.read_env(options))

        if compat.ON_WINDOWS:
            # do not quote on Windows, subprocess will handle it for us
            # using the MSFT quoting rules
            cmd = options.command
        else:
            cmd = ' '.join(shellquote(arg) for arg in options.command)

        p = Process(cmd, stdout=sys.stdout, stderr=sys.stderr)
        p.wait()
コード例 #6
0
ファイル: command.py プロジェクト: gratipay/honcho
def command_run(args):
    procfile_path = _procfile_path(args.app_root, args.procfile)
    os.environ.update(_read_env(procfile_path, args.env))

    if compat.ON_WINDOWS:
        # do not quote on Windows, subprocess will handle it for us
        # using the MSFT quoting rules
        cmd = args.command
    else:
        cmd = ' '.join(compat.shellquote(arg) for arg in args.command)

    p = Process(cmd, stdout=sys.stdout, stderr=sys.stderr)
    p.wait()
    sys.exit(p.returncode)
コード例 #7
0
ファイル: command.py プロジェクト: gratipay/honcho
def command_run(args):
    procfile_path = _procfile_path(args.app_root, args.procfile)
    os.environ.update(_read_env(procfile_path, args.env))

    if compat.ON_WINDOWS:
        # do not quote on Windows, subprocess will handle it for us
        # using the MSFT quoting rules
        cmd = args.command
    else:
        cmd = ' '.join(compat.shellquote(arg) for arg in args.command)

    p = Process(cmd, stdout=sys.stdout, stderr=sys.stderr)
    p.wait()
    sys.exit(p.returncode)
コード例 #8
0
ファイル: test_process.py プロジェクト: lefootballroi/honcho
 def test_wait(self):
     proc = Process('echo 123', popen=FakePopen)
     self.assertEqual(FakePopen.WAIT_RESULT, proc.wait())
コード例 #9
0
ファイル: shove.py プロジェクト: Osmose/shove
def run(cmd):
    """Run a single command and exit"""
    p = Process(cmd, stdout=sys.stdout, stderr=sys.stderr)
    p.wait()
    print "finished running %s - returned %s" % (cmd, p.returncode)
コード例 #10
0
ファイル: command.py プロジェクト: jamescasbon/honcho
def run(args):
    read_env(args)

    cmd = ' '.join(args.command)
    p = Process(cmd, stdout=sys.stdout)
    p.wait()
コード例 #11
0
ファイル: shove.py プロジェクト: Osmose/shove
def run(cmd):
    """Run a single command and exit"""
    p = Process(cmd, stdout=sys.stdout, stderr=sys.stderr)
    p.wait()
    print "finished running %s - returned %s" % (cmd, p.returncode)