Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

Commit

Permalink
Merge pull request #137 from salimane/brew_latest
Browse files Browse the repository at this point in the history
Make sure Personal homebrew_packages are always at their latest version
  • Loading branch information
jacobbednarz committed Nov 25, 2015
2 parents 643311e + 1da5bf6 commit 0b39aba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion manifests/personal.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Private: Includes a user's personal configuration based on their GitHub username
# Private: Includes a user's personal configuration based
# on their GitHub username
#
# Usage:
#
Expand Down Expand Up @@ -88,6 +89,7 @@
default => $homebrew_packages
}
ensure_resource('package', $_homebrew_packages, {
'ensure' => 'latest',
'provider' => 'homebrew',
})

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/puppet/provider/package/appdmg_eula_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
it "should call tmpdir and use the returned directory" do
Dir.should_receive(:mktmpdir).and_return tmpdir
Dir.stub(:entries).and_return ["foo.app"]
described_class.should_receive(:curl).with('-o', "#{tmpdir}/foo", '-C', '-', '-k', '-L', '-s', '--url', source)
described_class.should_receive(:curl).with('-o', "#{tmpdir}/foo", '-C', '-', '-L', '-s', '--url', source)
described_class.should_receive(:hdiutil).with('convert', '/tmp/foo', '-format', 'UDTO', '-o', '/tmp/good123/appdmg_eula')
described_class.should_receive(:hdiutil).with('attach', '-plist', '-nobrowse', '-readonly', '-noverify', '-noautoopen', '-mountrandom', '/tmp', "#{tmpdir}/appdmg_eula.cdr").and_return(fake_hdiutil_plist)
described_class.should_receive(:installapp)
Expand Down

0 comments on commit 0b39aba

Please sign in to comment.