Module: VagrantConverge::Cap::Guest::POSIX::ConvergeInstalled

Defined in:
lib/vagrant-converge/cap/guest/posix/converge_installed.rb

Class Method Summary collapse

Class Method Details

.converge_installed(machine, version) ⇒ Object



6
7
8
9
10
11
12
13
14
# File 'lib/vagrant-converge/cap/guest/posix/converge_installed.rb', line 6

def self.converge_installed(machine, version)
  command = 'text -x "$(command -v converge)"'

  if version != :latest
    command << "&& converge version | grep 'converge #{version}'"
  end

  machine.communicate.test command, sudo: false
end