Skip to content
This repository has been archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
Merge pull request #34 from geetarista/v1.5.0
Browse files Browse the repository at this point in the history
Upgrade to Vagrant 1.5.0
  • Loading branch information
jhaals committed Mar 10, 2014
2 parents 22579cb + ef3921a commit 7a502b9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Public: Installs Vagrant 1.4.2
# Public: Installs Vagrant 1.5.0
#
# Usage:
#
# include vagrant

class vagrant($version = '1.4.2') {
class vagrant($version = '1.5.0') {
package { "Vagrant_${version}":
ensure => installed,
source => "https://dl.bintray.com/mitchellh/vagrant/Vagrant-${version}.dmg",
source => "https://dl.bintray.com/mitchellh/vagrant/vagrant_${version}.dmg",
provider => 'pkgdmg'
}

Expand Down
8 changes: 4 additions & 4 deletions spec/classes/vagrant_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

describe 'vagrant' do
describe 'when not specifiying a version' do
it { should contain_package('Vagrant_1.4.2').with({
it { should contain_package('Vagrant_1.5.0').with({
:ensure => 'installed',
:provider => 'pkgdmg'
})}
end

describe 'when specifying a specific version' do
let (:params) {{:version => '1.4.3'}}
let (:params) {{:version => '1.5.0'}}

it { should contain_package('Vagrant_1.4.3')}
it { should contain_package('Vagrant_1.4.3').with_source('https://dl.bintray.com/mitchellh/vagrant/Vagrant-1.4.3.dmg')}
it { should contain_package('Vagrant_1.5.0')}
it { should contain_package('Vagrant_1.5.0').with_source('https://dl.bintray.com/mitchellh/vagrant/vagrant_1.5.0.dmg')}
end

end
Expand Down

0 comments on commit 7a502b9

Please sign in to comment.