class GrokCLI::Docker::Rails::Test

Public Class Methods

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

Public Instance Methods

execute(test_options = "") click to toggle source
# File lib/grok_cli/docker/rails/test.rb, line 7
    def execute(test_options = "")
      GrokCLI::Docker::Boot.new.execute
      GrokCLI::Docker::UpdateEtcHosts.new.execute

      system <<~CMD

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

        docker-compose run --rm web bundle exec rake test #{test_options}

      CMD
    end