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
F13274371: D10469.diff
Fri, May 31, 3:37 AM
F13263607: D10469.id33748.diff
Mon, May 27, 10:36 AM
F13260422: D10469.diff
Sun, May 26, 11:53 PM
F13242745: D10469.diff
Thu, May 23, 3:04 AM
F13224872: D10469.diff
Sun, May 19, 11:34 AM
F13221108: D10469.diff
Sun, May 19, 2:16 AM
F13215914: D10469.id.diff
Fri, May 17, 8:52 PM
F13203497: D10469.diff
Tue, May 14, 11:48 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.