Sha256: 5b9ef20d448c2d2149b6b7d6b52c94be7e4e6c5d4b922bce0d83d78b42abc610
Contents?: true
Size: 524 Bytes
Versions: 2
Compression:
Stored size: 524 Bytes
Contents
module Percheron module Actions class Shell include Base DEFAULT_SHELL = '/bin/sh' def initialize(container, shell: DEFAULT_SHELL) @container = container @shell = shell end def execute! $logger.debug "Executing a bash shell on '#{container.name}' container" exec! end private attr_reader :container, :shell def exec! system('docker exec -ti %s %s' % [ container.full_name, shell ]) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
percheron-0.7.1 | lib/percheron/actions/shell.rb |
percheron-0.7.0 | lib/percheron/actions/shell.rb |