]> gitweb.fluxo.info Git - puppet-stdlib.git/commitdiff
Initial commit
authorJeff McCune <jeff@puppetlabs.com>
Tue, 24 May 2011 18:06:30 +0000 (11:06 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Tue, 24 May 2011 18:06:30 +0000 (11:06 -0700)
.gitignore [new file with mode: 0644]
Modulefile [new file with mode: 0644]
README.markdown [new file with mode: 0644]
manifests/init.pp [new file with mode: 0644]
manifests/stages.pp [new file with mode: 0644]
metadata.json [new file with mode: 0644]
spec/spec.opts [new file with mode: 0644]
spec/spec_helper.rb [new file with mode: 0644]
tests/init.pp [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..01d0a08
--- /dev/null
@@ -0,0 +1 @@
+pkg/
diff --git a/Modulefile b/Modulefile
new file mode 100644 (file)
index 0000000..51704dd
--- /dev/null
@@ -0,0 +1,11 @@
+name    'puppetlabs-stdlib'
+version '0.1.1'
+source 'git://github.com/puppetlabs/puppetlabs-stdlib'
+author 'puppetlabs'
+license 'Apache'
+summary 'Puppet Module Standard Library'
+description 'Standard Library for Puppet Modules'
+project_page 'https://github.com/puppetlabs/puppetlabs-stdlib'
+
+## Add dependencies, if any:
+# dependency 'username/name', '>= 1.2.0'
diff --git a/README.markdown b/README.markdown
new file mode 100644 (file)
index 0000000..e3a1a29
--- /dev/null
@@ -0,0 +1,24 @@
+# Puppet Labs Standard Library #
+
+This module provides a "standard library" of resources for developing Puppet
+Modules.  This modules will include the following additions to Puppet
+
+ * Stages
+ * Functions
+ * Types
+ * Providers
+ * Defined resource types
+
+This module is officially curated and provided by Puppet Labs.  The modules
+Puppet Labs writes and distributes will make heavy use of this standard
+library.
+
+# Overview #
+
+TBA
+
+# Contact Information #
+
+  Jeff McCune <jeff@puppetlabs.com>
+
+EOF
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644 (file)
index 0000000..a3f2406
--- /dev/null
@@ -0,0 +1,17 @@
+# Class: stdlib
+#
+# This module manages stdlib
+#
+# Parameters:
+#
+# Actions:
+#
+# Requires:
+#
+# Sample Usage:
+#
+# [Remember: No empty lines between comments and class definition]
+class stdlib {
+
+
+}
diff --git a/manifests/stages.pp b/manifests/stages.pp
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/metadata.json b/metadata.json
new file mode 100644 (file)
index 0000000..8ce7797
--- /dev/null
@@ -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 (file)
index 0000000..91cd642
--- /dev/null
@@ -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 (file)
index 0000000..a4aeeae
--- /dev/null
@@ -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 (file)
index 0000000..9675d83
--- /dev/null
@@ -0,0 +1 @@
+include stdlib