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

Commit

Permalink
intial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ley Missailidis committed Mar 29, 2013
0 parents commit 25ca7c3
Show file tree
Hide file tree
Showing 15 changed files with 149 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
/.bundle/
.ruby-version
5 changes: 5 additions & 0 deletions .travis.yml
@@ -0,0 +1,5 @@
---
script: "./script/cibuild"
gemfile: "this/does/not/exist"
rvm:
- "1.8.7"
3 changes: 3 additions & 0 deletions Gemfile
@@ -0,0 +1,3 @@
source 'https://rubygems.org/'

gem 'cardboard', '~> 1.0'
72 changes: 72 additions & 0 deletions Gemfile.lock
@@ -0,0 +1,72 @@
GEM
remote: https://rubygems.org/
specs:
addressable (2.3.3)
ansi (1.4.3)
boxen (1.0.2)
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.1)
boxen (~> 1.0)
puppet-lint (~> 0.3)
puppetlabs_spec_helper (~> 0.4)
rspec-puppet (~> 0.1)
diff-lcs (1.2.1)
facter (1.6.18)
faraday (0.8.6)
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.16)
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.3)
metaclass (~> 0.0.1)
multi_json (1.7.1)
multipart-post (1.2.0)
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.1)
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.13.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.0)
rspec-puppet (0.1.6)
rspec
thor (0.17.0)

PLATFORMS
ruby

DEPENDENCIES
cardboard (~> 1.0)
13 changes: 13 additions & 0 deletions README.md
@@ -0,0 +1,13 @@
# BBEdit - It Doesn't Suck

Installs [BBEdit](http://www.barebones.com/products/bbedit/).

Does not include license but there is a free alternative Textwrangler.

## Usage:

``` puppet
include bbedit
```

**Note**: Right now this does not install cmd tools so you will have to run that from the app menu on your own.
12 changes: 12 additions & 0 deletions manifests/init.pp
@@ -0,0 +1,12 @@
# Public: Install BBedit
# This does not include any license.
#
# Usage:
#
# include bbedit
class bbedit {
package { 'BBEdit':
source => 'http://pine.barebones.com/files/BBEdit_10.5.2.dmg',
provider => 'appdmg'
}
}
19 changes: 19 additions & 0 deletions script/cardboard-exec
@@ -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 change: 1 addition & 0 deletions script/cibuild
1 change: 1 addition & 0 deletions script/lint
1 change: 1 addition & 0 deletions script/specs
1 change: 1 addition & 0 deletions script/syntax
10 changes: 10 additions & 0 deletions spec/classes/bbedit_spec.rb
@@ -0,0 +1,10 @@
require 'spec_helper'

describe 'bbedit' do
it do
should contain_package('BBEdit').with({
:source => 'http://pine.barebones.com/files/BBEdit_10.5.2.dmg',
:provider => 'appdmg'
})
end
end
Empty file added spec/fixtures/manifests/site.pp
Empty file.
1 change: 1 addition & 0 deletions spec/fixtures/modules/bbedit/manifests
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
@@ -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

0 comments on commit 25ca7c3

Please sign in to comment.