class GrokCLI::Docker::Start

Public Class Methods

new(config = Configuration.new) click to toggle source
# File lib/grok_cli/docker/start.rb, line 3
def initialize(config = Configuration.new)
  @config = config
end

Public Instance Methods

execute() click to toggle source
# File lib/grok_cli/docker/start.rb, line 7
    def execute
      Boot.new.execute
      UpdateEtcHosts.new.execute

      system <<~CMD

        eval "$(docker-machine env #{@config.machine_name})"

        docker-compose run --service-ports --rm web

      CMD
    end