Class: VagrantPlugins::GuestCos::Guest

Inherits:
Object
  • Object
show all
Defined in:
lib/cos/guest.rb

Instance Method Summary collapse

Instance Method Details

#detect?(machine) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/cos/guest.rb', line 6

def detect?(machine)
  machine.communicate.test("grep -q cOS /etc/os-release")
end