Sha256: 92f577104a001af6af1e01409cd1f24a0defdb009c2827977b04c251b08648cc

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

require "vagrant"

module VagrantPlugins
  module GuestNixos
    class Guest < Vagrant.plugin("2", :guest)
      def detect?(machine)
        # For some reason our test passes on Windows, so just short
        # circuit because we're not Windows.
        if machine.config.vm.communicator == :winrm
          return false
        end

        machine.communicate.test("test -f /run/current-system/nixos-version")
      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/guests/nixos/guest.rb