Sha256: 4c63dd41e6ee5d5c76af2462258809138fdf48d34ed5a196fc636e65d018c079

Contents?: true

Size: 898 Bytes

Versions: 2

Compression:

Stored size: 898 Bytes

Contents

# cat /etc/release | grep -i OmniOS
# cat /etc/redhat-release
# cat /etc/issue | grep 'Core Linux'
# cat /etc/release | grep -i SmartOS

module VagrantWindows
  module Communication
    module CommandFilters

      # Converts a *nix 'uname' command to a PowerShell equivalent
      class Uname

        def filter(command)
          # uname -s | grep 'Darwin'
          # uname -s | grep VMkernel
          # uname -s | grep 'FreeBSD'
          # uname -s | grep 'Linux'
          # uname -s | grep NetBSD
          # uname -s | grep 'OpenBSD'
          # uname -sr | grep SunOS | grep -v 5.11
          # uname -sr | grep 'SunOS 5.11'

          # uname is used to detect the guest type in Vagrant, so don't bother running
          # to speed up OS detection
          ''
        end

        def accept?(command)
          command.start_with?('uname ')
        end

      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vagrant-windows-1.7.0.pre.2 lib/vagrant-windows/communication/command_filters/uname.rb
vagrant-windows-1.7.0.pre.1 lib/vagrant-windows/communication/command_filters/uname.rb