class GrokCLI::Docker::Run
Public Class Methods
new(config = Configuration.new)
click to toggle source
# File lib/grok_cli/docker/run.rb, line 3 def initialize(config = Configuration.new) @config = config end
Public Instance Methods
execute(command)
click to toggle source
# File lib/grok_cli/docker/run.rb, line 7 def execute(command) Boot.new.execute UpdateEtcHosts.new.execute system <<~CMD eval "$(docker-machine env #{@config.machine_name})" docker-compose run --rm web #{command} CMD end