Class: Bolts::CLI::Help
- Inherits:
-
Object
- Object
- Bolts::CLI::Help
- Defined in:
- lib/bolts/cli/help.rb
Class Method Summary collapse
Class Method Details
.ecs_exec ⇒ Object
36 37 38 39 40 41 42 43 44 45 |
# File 'lib/bolts/cli/help.rb', line 36 def ecs_exec "Ssh into an ECS container instance, finds a running docker container associated\nwith the service and docker exec's into it.\n\nExamples:\n\n$ bolts ecs-exec my-service --cluster my-cluster\n" end |
.ecs_run ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/bolts/cli/help.rb', line 47 def ecs_run "Ssh into an ECS container instance and runs a docker container using the same\nenvironment and image as the specified running service.\n\nExamples:\n\n$ bolts ecs-run my-service --cluster my-cluster\n$ bolts ecs-run my-service --cluster my-cluster\n\n# If there are flags in the command that you want to pass down to the docker\nrun command you will need to put the command in single quotes. This is due to\nthe way Thor (what this tool uses) parses options.\n\n$ bolts ecs-run --cluster prod-hi hi-web-prod 'rake -T'\n" end |
.ssh ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/bolts/cli/help.rb', line 17 def ssh "Ssh quicky into an EC2 instance using an identifier. The identifier can be many\ndifferent things:\n\n* EC2 instance id. Example: i-067c5e3f026c1e801\n* ECS service. Example: my-ecs-service\n* ECS container instance id. Example: 7fbc8c75-4675-4d39-a5a4-0395ff8cd474\n* ECS task id. Example: 1ed12abd-645c-4a05-9acf-739b9d790170\n\nExamples:\n\n$ bolts ssh my-ecs-service --cluster my-cluster # cluster is required or ~/.bolts/settings.yml\n$ bolts ssh i-067c5e3f026c1e801\n$ bolts ssh 7fbc8c75-4675-4d39-a5a4-0395ff8cd474\n$ bolts ssh 1ed12abd-645c-4a05-9acf-739b9d790170\n" end |