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
Unknown Object (File)
Sat, Mar 16, 2:27 AM
Unknown Object (File)
Feb 15 2024, 9:49 AM
Unknown Object (File)
Jan 28 2024, 8:33 AM
Unknown Object (File)
Jan 28 2024, 12:22 AM
Unknown Object (File)
Jan 27 2024, 10:51 PM
Unknown Object (File)
Jan 27 2024, 7:47 PM
Unknown Object (File)
Jan 24 2024, 7:04 AM
Unknown Object (File)
Jan 7 2024, 1:34 AM

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.