Sha256: 68025eaf58676aebb8de0e15f7a914fb5bf9495aae4ac366688a5c0d364344a2

Contents?: true

Size: 533 Bytes

Versions: 1

Compression:

Stored size: 533 Bytes

Contents

module VagrantPlugins
  module DockerProvider
    module Action
      class Stop
        def initialize(app, env)
          @app = app
        end

        def call(env)
          machine = env[:machine]
          driver  = machine.provider.driver
          if driver.running?(machine.id)
            env[:ui].info I18n.t("docker_provider.messages.stopping")
            driver.stop(machine.id, machine.provider_config.stop_timeout)
          end
          @app.call(env)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-cloudstack-1.2.0 vendor/bundle/bundler/gems/vagrant-c84e05fd063f/plugins/providers/docker/action/stop.rb