Sha256: 11df3ccd2631dbc76b03c0075e4e8249c0d6cdc76eef3664ef5e0de8ae289e9b

Contents?: true

Size: 544 Bytes

Versions: 15

Compression:

Stored size: 544 Bytes

Contents

module VagrantPlugins
  module DockerProvisioner
    module Cap
      module Linux
        module DockerInstalled
          def self.docker_installed(machine)
            paths = [
              "/usr/bin/docker",
              "/usr/local/bin/docker",
              "/usr/sbin/docker",
            ]

            paths.each do |p|
              if machine.communicate.test("test -f #{p}", sudo: true)
                return true
              end
            end

            return false
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 12 versions & 3 rubygems

Version Path
vagrant-unbundled-1.9.1.1 plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-unbundled-1.8.5.2 plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-unbundled-1.8.5.1 plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-unbundled-1.8.4.2 plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-unbundled-1.8.4.1 plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-unbundled-1.8.1.2 plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-unbundled-1.8.1.1 plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-1cf2a8db4ccb/plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-b421af58e8b3/plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-309e896975d1/plugins/provisioners/docker/cap/linux/docker_installed.rb
vagrant-cloudstack-1.1.0 vendor/bundle/bundler/gems/vagrant-272fb27e0536/plugins/provisioners/docker/cap/linux/docker_installed.rb