Sha256: 6456df3e588c81292792290732a2d3d40f8e9af25439585dfb51f26adb3aa997
Contents?: true
Size: 793 Bytes
Versions: 2
Compression:
Stored size: 793 Bytes
Contents
module VagrantPlugins module DockerComposeProvisioner module Cap module Linux module DockerComposeGetInfo def self.docker_compose_get_info(machine, config) comm = machine.communicate kernel_name = "" comm.execute("uname -s") do |type, data| if type == :stdout kernel_name << data end end kernel_name.strip! machine_hardware_name = "" comm.execute("uname -m") do |type, data| if type == :stdout machine_hardware_name << data end end machine_hardware_name.strip! [machine_hardware_name, kernel_name] end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vagrant-docker-compose-1.5.1 | lib/vagrant-docker-compose/cap/linux/docker_compose_get_info.rb |
vagrant-docker-compose-1.5.0 | lib/vagrant-docker-compose/cap/linux/docker_compose_get_info.rb |