Sha256: a70afa02b60627a3a20d04513e946c3f4ceb7005de42e31821afb0a1f808b468

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

module VagrantPlugins
  module Ventriloquist
    module Cap
      module Debian
        module GitInstall
          def self.git_install(machine)
            machine.communicate.tap do |comm|
              if ! comm.test('which git > /dev/null')
                machine.env.ui.info('Installing git')
                comm.sudo('apt-get install -y git')
              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/git_install.rb
ventriloquist-0.3.1 lib/ventriloquist/cap/debian/git_install.rb
ventriloquist-0.3.0 lib/ventriloquist/cap/debian/git_install.rb
ventriloquist-0.2.1 lib/ventriloquist/cap/debian/git_install.rb
ventriloquist-0.2.0 lib/ventriloquist/cap/debian/git_install.rb
ventriloquist-0.1.0 lib/ventriloquist/cap/debian/git_install.rb