Sha256: 5c9c9b9a9e621a8ac4a227efebf11fcefc3db36b640a4c4d26663258db55c7bb
Contents?: true
Size: 826 Bytes
Versions: 11
Compression:
Stored size: 826 Bytes
Contents
module Sonic autoload :Docker, 'sonic/docker' class Ecs < BaseCommand class_option :bastion, desc: "Bastion jump host to use. Defaults to no bastion server." class_option :cluster, desc: "ECS Cluster to use. Default cluster is default" desc "exec [ECS_SERVICE]", "docker exec into running docker container associated with the service on a container instance" long_desc Help.text("ecs/exec") def exec(service, *command) Docker.new(service, options.merge(command: command)).exec end # Cannot name the command run because that is a reserved Thor keyword :( desc "sh [ECS_SERVICE]", "docker run with the service on a container instance" long_desc Help.text("ecs/sh") def sh(service, *command) Docker.new(service, options.merge(command: command)).run end end end
Version data entries
11 entries across 11 versions & 1 rubygems