Page MenuHomePhabricator

[drydock/core] Implement `drydock run-command` for running commands against leases
AbandonedPublic

Authored by epriestley on Sep 10 2014, 11:39 PM.
Tags
None
Referenced Files
F19382521: D10469.id25175.diff
Sat, Dec 27, 12:16 AM
F19340291: D10469.diff
Thu, Dec 25, 10:32 PM
F19055725: D10469.diff
Nov 28 2025, 6:12 PM
F19030496: D10469.diff
Nov 24 2025, 9:24 PM
F19030477: D10469.diff
Nov 24 2025, 9:08 PM
F18842902: D10469.diff
Oct 28 2025, 7:34 PM
F18826925: D10469.diff
Oct 24 2025, 6:35 AM
F18774950: D10469.id.diff
Oct 10 2025, 5:27 PM

Details

Reviewers
hach-que
Group Reviewers
Blessed Reviewers
Maniphest Tasks
T2015: Implement Drydock
Summary

Ref T2015. This allows users to run commands against a lease using the command interface, via a command line bin/drydock run-command workflow. It is used like this:

bin/drydock run-command --id 1234 --command 'echo test'
Test Plan

Tested on a production server while using it to diagnose issues.

Event Timeline

hach-que retitled this revision from to Implement `drydock ssh` for running commands against leases.
hach-que updated this object.
hach-que edited the test plan for this revision. (Show Details)
hach-que added a reviewer: epriestley.
epriestley edited edge metadata.

Let's call this run-command or something, we use ssh in the cluster to mean "open an SSH prompt", and I'd like that usage to be consistent.

src/applications/drydock/management/DrydockManagementSSHWorkflow.php
9 ↗(On Diff #25175)

pht

12–19 ↗(On Diff #25175)

'help'

29 ↗(On Diff #25175)

pht()

37 ↗(On Diff #25175)

excuteOne()?

41 ↗(On Diff #25175)

return 1;?

43 ↗(On Diff #25175)

return 1;?

49 ↗(On Diff #25175)

Instead, return $err?

This revision now requires changes to proceed.Aug 8 2015, 5:53 PM
hach-que edited edge metadata.

Rename to run-command and address other issues

hach-que retitled this revision from Implement `drydock ssh` for running commands against leases to [drydock/core] Implement `drydock run-command` for running commands against leases.Aug 24 2015, 8:32 AM
hach-que updated this object.
hach-que edited edge metadata.
epriestley edited reviewers, added: hach-que; removed: epriestley.

Oh, I completely forgot that this existed and implemented drydock command in D14126.