Module: Chef::Sugar::Vagrant

Extended by:
Vagrant
Included in:
Vagrant
Defined in:
lib/chef/sugar/vagrant.rb

Instance Method Summary collapse

Instance Method Details

#vagrant?(node) ⇒ Boolean

Determine if the current node is running in vagrant mode.

Parameters:

Returns:

  • (Boolean)

    true if the machine is currently running vagrant, false otherwise


31
32
33
# File 'lib/chef/sugar/vagrant.rb', line 31

def vagrant?(node)
  vagrant_key?(node) || vagrant_domain?(node) || vagrant_user?(node)
end