Sha256: 38f7ea96fca38c15e62921d7f9209b1d1085db86a235f31f84d14048c27d2669

Contents?: true

Size: 463 Bytes

Versions: 6

Compression:

Stored size: 463 Bytes

Contents

module VagrantPlugins
  module Ventriloquist
    module Cap
      module Debian
        module MercurialInstall
          def self.mercurial_install(machine)
            machine.communicate.tap do |comm|
              if ! comm.test('which hg > /dev/null')
                machine.env.ui.info('Installing mercurial')
                comm.sudo('apt-get install -y mercurial')
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ventriloquist-0.3.2 lib/ventriloquist/cap/debian/mercurial_install.rb
ventriloquist-0.3.1 lib/ventriloquist/cap/debian/mercurial_install.rb
ventriloquist-0.3.0 lib/ventriloquist/cap/debian/mercurial_install.rb
ventriloquist-0.2.1 lib/ventriloquist/cap/debian/mercurial_install.rb
ventriloquist-0.2.0 lib/ventriloquist/cap/debian/mercurial_install.rb
ventriloquist-0.1.0 lib/ventriloquist/cap/debian/mercurial_install.rb