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

Commit ae5e809

Browse files
committed
cardboardize
1 parent 3ec08d4 commit ae5e809

File tree

11 files changed

+126
-8
lines changed

11 files changed

+126
-8
lines changed

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/.bundle
2+
/.ruby-version
3+
/spec/fixtures/.librarian
4+
/spec/fixtures/.tmp
5+
/spec/fixtures/Puppetfile.lock
6+
/spec/fixtures/modules
7+
/spec/fixtures/vendor

CONTRIBUTING.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
#Contributing
1+
Thanks for contributing to Boxen! A couple of notes to help you out:
22

3-
* Fork it
4-
* Fix it
5-
* Test it
6-
* Pull Request it
3+
* We're conservative with version bumps, especially on services. We
4+
tend to keep things aligned with what we're personally using in
5+
development. If that doesn't work for your team, fork the module and
6+
use it in your Boxen instead.
77

8+
* Otherwise, go crazy! Fork it, fix it, test it, pull request it.
9+
Remember that a PR is the start of a conversation, not the end of one.
10+
11+
:heart:,
12+
Boxen

Gemfile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source "https://rubygems.org"
2+
3+
gem "cardboard", "~> 0.2"

Gemfile.lock

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
addressable (2.3.2)
5+
ansi (1.4.3)
6+
boxen (0.8.1)
7+
ansi (~> 1.4)
8+
hiera (~> 1.0.0)
9+
highline (~> 1.6)
10+
json_pure (>= 1.7.7, < 2.0)
11+
librarian-puppet (~> 0.9)
12+
octokit (~> 1.15)
13+
puppet (~> 3.0)
14+
cardboard (0.2.0)
15+
boxen (~> 0.8)
16+
puppet-lint (~> 0.3)
17+
puppetlabs_spec_helper (~> 0.4)
18+
rspec-puppet (~> 0.1)
19+
diff-lcs (1.1.3)
20+
facter (1.6.17)
21+
faraday (0.8.5)
22+
multipart-post (~> 1.1)
23+
faraday_middleware (0.9.0)
24+
faraday (>= 0.7.4, < 0.9)
25+
hashie (1.2.0)
26+
hiera (1.0.0)
27+
highline (1.6.15)
28+
json (1.7.7)
29+
json_pure (1.7.7)
30+
librarian-puppet (0.9.7)
31+
json
32+
puppet
33+
thor (~> 0.15)
34+
metaclass (0.0.1)
35+
mocha (0.13.2)
36+
metaclass (~> 0.0.1)
37+
multi_json (1.6.0)
38+
multipart-post (1.1.5)
39+
netrc (0.7.7)
40+
octokit (1.23.0)
41+
addressable (~> 2.2)
42+
faraday (~> 0.8)
43+
faraday_middleware (~> 0.9)
44+
hashie (~> 1.2)
45+
multi_json (~> 1.3)
46+
netrc (~> 0.7.7)
47+
puppet (3.1.0)
48+
facter (~> 1.6)
49+
hiera (~> 1.0)
50+
puppet-lint (0.3.2)
51+
puppetlabs_spec_helper (0.4.1)
52+
mocha (>= 0.10.5)
53+
rake
54+
rspec (>= 2.9.0)
55+
rspec-puppet (>= 0.1.1)
56+
rake (10.0.3)
57+
rspec (2.12.0)
58+
rspec-core (~> 2.12.0)
59+
rspec-expectations (~> 2.12.0)
60+
rspec-mocks (~> 2.12.0)
61+
rspec-core (2.12.2)
62+
rspec-expectations (2.12.1)
63+
diff-lcs (~> 1.1.3)
64+
rspec-mocks (2.12.2)
65+
rspec-puppet (0.1.6)
66+
rspec
67+
thor (0.17.0)
68+
69+
PLATFORMS
70+
ruby
71+
72+
DEPENDENCIES
73+
cardboard (~> 0.2)

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# Java Puppet Module for Boxen
22

3+
Installs Java 7u13.
4+
35
## Usage
46

57
```puppet
68
include java
79
```
10+
11+
## Required Puppet Modules
12+
13+
None.

manifests/init.pp

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
class java {
2-
$url = 'http://s3.amazonaws.com/github-setup/java-201206.dmg'
2+
$url = 'http://javadl.sun.com/webapps/download/AutoDL?BundleId=73851'
33
$wrapper = "${boxen::config::bindir}/java"
44

5-
package { 'java-201206':
5+
package { 'jre-7u13-macosx-x64.dmg':
66
ensure => present,
7+
alias => 'java',
78
provider => pkgdmg,
89
source => $url
910
}
1011

1112
file { $wrapper:
1213
source => 'puppet:///modules/java/java.sh',
1314
mode => 0755,
14-
require => Package['java-201206']
15+
require => Package['java']
1516
}
1617
}

script/cardboard-exec

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/sh
2+
# Make sure deps are available and run a Cardboard command.
3+
4+
set -e
5+
6+
cd $(dirname "$0")/..
7+
8+
BUNDLE=.bundle
9+
BIN=$BUNDLE/binstubs
10+
SCRIPT=$(basename "$0")
11+
12+
BUNDLE_ARGS="--binstubs $BIN --path $BUNDLE --quiet"
13+
[ "cibuild" = "$SCRIPT" ] && BUNDLE_ARGS="$BUNDLE_ARGS --no-quiet"
14+
15+
rm -rf {$BIN,$BUNDLE/config}
16+
bundle install $BUNDLE_ARGS
17+
18+
bundle exec cardboard bootstrap
19+
exec bundle exec cardboard "$SCRIPT" "$@"

script/cibuild

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cardboard-exec

script/lint

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cardboard-exec

script/specs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cardboard-exec

script/syntax

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
cardboard-exec

0 commit comments

Comments
 (0)