commit 55a2ab8b198b806e2e8866fc46165e4a10ebe043 Author: Jeff McCune Date: Mon May 23 18:12:37 2011 -0700 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01d0a08 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pkg/ diff --git a/Modulefile b/Modulefile new file mode 100644 index 0000000..a2cac7d --- /dev/null +++ b/Modulefile @@ -0,0 +1,11 @@ +name 'puppetlabs-java' +version '0.0.1' +source 'UNKNOWN' +author 'puppetlabs' +license 'UNKNOWN' +summary 'UNKNOWN' +description 'UNKNOWN' +project_page 'UNKNOWN' + +## Add dependencies, if any: +# dependency 'username/name', '>= 1.2.0' diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..828c0f5 --- /dev/null +++ b/README.markdown @@ -0,0 +1,3 @@ +java + +This is the java module. diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..c59c149 --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,17 @@ +# Class: java +# +# This module manages java +# +# Parameters: +# +# Actions: +# +# Requires: +# +# Sample Usage: +# +# [Remember: No empty lines between comments and class definition] +class java { + + +} diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..8ce7797 --- /dev/null +++ b/metadata.json @@ -0,0 +1,12 @@ +/* ++-----------------------------------------------------------------------+ +| | +| ==> DO NOT EDIT THIS FILE! <== | +| | +| You should edit the `Modulefile` and run `puppet-module build` | +| to generate the `metadata.json` file for your releases. | +| | ++-----------------------------------------------------------------------+ +*/ + +{} diff --git a/spec/spec.opts b/spec/spec.opts new file mode 100644 index 0000000..91cd642 --- /dev/null +++ b/spec/spec.opts @@ -0,0 +1,6 @@ +--format +s +--colour +--loadby +mtime +--backtrace diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..a4aeeae --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,18 @@ +require 'pathname' +dir = Pathname.new(__FILE__).parent +$LOAD_PATH.unshift(dir, dir + 'lib', dir + '../lib') + +require 'mocha' +require 'puppet' +gem 'rspec', '=1.2.9' +require 'spec/autorun' + +Spec::Runner.configure do |config| + config.mock_with :mocha +end + +# We need this because the RAL uses 'should' as a method. This +# allows us the same behaviour but with a different method name. +class Object + alias :must :should +end diff --git a/tests/init.pp b/tests/init.pp new file mode 100644 index 0000000..8be274b --- /dev/null +++ b/tests/init.pp @@ -0,0 +1 @@ +include java