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