Initial commit.

This commit is contained in:
Dan Barber 2013-02-19 11:10:21 +00:00
commit c5ce4042d4
15 changed files with 169 additions and 0 deletions

7
.gitignore vendored Normal file
View File

@ -0,0 +1,7 @@
/.bundle
/.ruby-version
/spec/fixtures/.librarian
/spec/fixtures/.tmp
/spec/fixtures/Puppetfile.lock
/spec/fixtures/modules
/spec/fixtures/vendor

5
.travis.yml Normal file
View File

@ -0,0 +1,5 @@
---
script: "./script/cibuild"
gemfile: "this/does/not/exist"
rvm:
- "1.8.7"

12
CONTRIBUTING.md Normal file
View File

@ -0,0 +1,12 @@
Thanks for contributing to Boxen! A couple of notes to help you out:
* We're conservative with version bumps, especially on services. We
tend to keep things aligned with what we're personally using in
development. If that doesn't work for your team, fork the module and
use it in your Boxen instead.
* Otherwise, go crazy! Fork it, fix it, test it, pull request it.
Remember that a PR is the start of a conversation, not the end of one.
:heart:,
Boxen

3
Gemfile Normal file
View File

@ -0,0 +1,3 @@
source "https://rubygems.org"
gem "cardboard", "~> 1.0"

72
Gemfile.lock Normal file
View File

@ -0,0 +1,72 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.3.2)
ansi (1.4.3)
boxen (1.0.0)
ansi (~> 1.4)
hiera (~> 1.0.0)
highline (~> 1.6)
json_pure (>= 1.7.7, < 2.0)
librarian-puppet (~> 0.9)
octokit (~> 1.15)
puppet (~> 3.0)
cardboard (1.0.0)
boxen (~> 1.0)
puppet-lint (~> 0.3)
puppetlabs_spec_helper (~> 0.4)
rspec-puppet (~> 0.1)
diff-lcs (1.1.3)
facter (1.6.17)
faraday (0.8.5)
multipart-post (~> 1.1)
faraday_middleware (0.9.0)
faraday (>= 0.7.4, < 0.9)
hashie (1.2.0)
hiera (1.0.0)
highline (1.6.15)
json (1.7.7)
json_pure (1.7.7)
librarian-puppet (0.9.8)
json
thor (~> 0.15)
metaclass (0.0.1)
mocha (0.13.2)
metaclass (~> 0.0.1)
multi_json (1.6.0)
multipart-post (1.1.5)
netrc (0.7.7)
octokit (1.23.0)
addressable (~> 2.2)
faraday (~> 0.8)
faraday_middleware (~> 0.9)
hashie (~> 1.2)
multi_json (~> 1.3)
netrc (~> 0.7.7)
puppet (3.1.0)
facter (~> 1.6)
hiera (~> 1.0)
puppet-lint (0.3.2)
puppetlabs_spec_helper (0.4.1)
mocha (>= 0.10.5)
rake
rspec (>= 2.9.0)
rspec-puppet (>= 0.1.1)
rake (10.0.3)
rspec (2.12.0)
rspec-core (~> 2.12.0)
rspec-expectations (~> 2.12.0)
rspec-mocks (~> 2.12.0)
rspec-core (2.12.2)
rspec-expectations (2.12.1)
diff-lcs (~> 1.1.3)
rspec-mocks (2.12.2)
rspec-puppet (0.1.6)
rspec
thor (0.17.0)
PLATFORMS
ruby
DEPENDENCIES
cardboard (~> 1.0)

18
README.md Normal file
View File

@ -0,0 +1,18 @@
# Quicksilver Puppet Module for Boxen
Install [Quicksilver](http://qsapp.com), a productivity app for Mac OS X.
## Usage
```puppet
include quicksilver
```
## Required Puppet Modules
* `boxen`
## Development
Write code. Run `script/cibuild` to test it. Check the `script`
directory for other useful tools.

11
manifests/init.pp Normal file
View File

@ -0,0 +1,11 @@
# Public: Install Quicksilver.app into /Applications.
#
# Examples
#
# include quicksilver
class quicksilver {
package { 'Quicksilver':
provider => 'compressed_app',
source => 'http://github.qsapp.com/downloads/Quicksilver%20B71.dmg'
}
}

19
script/cardboard-exec Executable file
View File

@ -0,0 +1,19 @@
#!/bin/sh
# Make sure deps are available and run a Cardboard command.
set -e
cd $(dirname "$0")/..
BUNDLE=.bundle
BIN=$BUNDLE/binstubs
SCRIPT=$(basename "$0")
BUNDLE_ARGS="--binstubs $BIN --path $BUNDLE --quiet"
[ "cibuild" = "$SCRIPT" ] && BUNDLE_ARGS="$BUNDLE_ARGS --no-quiet"
rm -rf {$BIN,$BUNDLE/config}
bundle install $BUNDLE_ARGS
bundle exec cardboard bootstrap
exec bundle exec cardboard "$SCRIPT" "$@"

1
script/cibuild Symbolic link
View File

@ -0,0 +1 @@
cardboard-exec

1
script/lint Symbolic link
View File

@ -0,0 +1 @@
cardboard-exec

1
script/specs Symbolic link
View File

@ -0,0 +1 @@
cardboard-exec

1
script/syntax Symbolic link
View File

@ -0,0 +1 @@
cardboard-exec

View File

@ -0,0 +1,10 @@
require 'spec_helper'
describe 'quicksilver' do
it do
should contain_package('Quicksilver').with({
:provider => 'appdmg',
:source => 'http://github.qsapp.com/downloads/Quicksilver%20B71.dmg',
})
end
end

0
spec/fixtures/manifests/site.pp vendored Normal file
View File

8
spec/spec_helper.rb Normal file
View File

@ -0,0 +1,8 @@
require 'rspec-puppet'
fixture_path = File.expand_path(File.join(__FILE__, '..', 'fixtures'))
RSpec.configure do |c|
c.module_path = File.join(fixture_path, 'modules')
c.manifest_dir = File.join(fixture_path, 'manifests')
end