Skip to content

Commit 738cea0

Browse files
author
Joshua Hoblitt
committed
Merge puppet-module_skel
1 parent 4f9f7c8 commit 738cea0

File tree

11 files changed

+149
-0
lines changed

11 files changed

+149
-0
lines changed

.fixtures.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
fixtures:
2+
repositories:
3+
"stdlib": "git://github.com/puppetlabs/puppetlabs-stdlib.git"
4+
symlinks:
5+
"udev": "#{source_dir}"

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
pkg/
2+
spec/fixtures/
3+
Gemfile.lock
4+
*.orig
5+
*.rej
6+
*.patch

.travis.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
language: ruby
2+
rvm:
3+
- 1.8.7
4+
- 1.9.3
5+
- 2.0.0
6+
- ruby-head
7+
env:
8+
- PUPPET_GEM_VERSION="~> 2.7.0"
9+
- PUPPET_GEM_VERSION="~> 3.0.0"
10+
- PUPPET_GEM_VERSION="~> 3.1.0"
11+
- PUPPET_GEM_VERSION="~> 3.2.1"
12+
matrix:
13+
allow_failures:
14+
- rvm: ruby-head
15+
exclude:
16+
- rvm: 1.9.3
17+
env: PUPPET_GEM_VERSION="~> 2.7.0"
18+
- rvm: 2.0.0
19+
env: PUPPET_GEM_VERSION="~> 2.7.0"
20+
- rvm: 2.0.0
21+
env: PUPPET_GEM_VERSION="~> 3.0.0"
22+
- rvm: 2.0.0
23+
env: PUPPET_GEM_VERSION="~> 3.1.0"
24+
- rvm: ruby-head
25+
env: PUPPET_GEM_VERSION="~> 2.7.0"
26+
- rvm: ruby-head
27+
env: PUPPET_GEM_VERSION="~> 3.0.0"
28+
- rvm: ruby-head
29+
env: PUPPET_GEM_VERSION="~> 3.1.0"
30+
notifications:
31+
email: false

Gemfile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
source 'https://rubygems.org'
2+
3+
if puppetversion = ENV['PUPPET_GEM_VERSION']
4+
gem 'puppet', puppetversion, :require => false
5+
else
6+
gem 'puppet', :require => false
7+
end
8+
9+
gem 'rake'
10+
gem 'puppetlabs_spec_helper'
11+
gem 'puppet-lint'
12+
gem 'puppet-syntax'
13+
14+
# vim:ft=ruby

LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright (C) 2012-2013 Joshua Hoblitt <jhoblitt@cpan.org>
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

Modulefile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name 'jhoblitt-module_skel'
2+
version '0.0.1'
3+
4+
author 'Joshua Hoblitt <jhoblitt@cpan.org>'
5+
license 'Apache'
6+
project_page 'https://github.com/jhoblitt/puppet-module_skel'
7+
source 'https://github.com/jhoblitt/puppet-module_skel.git'
8+
summary 'module skeleton'
9+
description 'module skeleton'
10+
dependency 'puppetlabs/stdlib', '>= 1.0.0'

README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Puppet module_skel Module
2+
=========================
3+
4+
[![Build Status](https://travis-ci.org/jhoblitt/puppet-module_skel.png)](https://travis-ci.org/jhoblitt/puppet-module_skel)
5+
6+
#### Table of Contents
7+
8+
1. [Overview](#overview)
9+
2. [Description](#description)
10+
3. [Usage](#usage)
11+
4. [Limitations](#limitations)
12+
* [Tested Platforms](#tested-platforms)
13+
5. [Support](#support)
14+
15+
16+
Overview
17+
--------
18+
19+
20+
Description
21+
-----------
22+
23+
24+
Usage
25+
-----
26+
27+
28+
Limitations
29+
-----------
30+
31+
### Tested Platforms
32+
33+
34+
Support
35+
-------
36+
37+
Please log tickets and issues at
38+
[github](https://github.com/jhoblitt/puppet-module_skel/issues)
39+

Rakefile

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
require 'puppetlabs_spec_helper/rake_tasks'
2+
require 'puppet-syntax/tasks/puppet-syntax'
3+
require 'puppet-lint/tasks/puppet-lint'
4+
5+
PuppetSyntax.exclude_paths = ["spec/fixtures/**/*"]
6+
#PuppetLint.configuration.send("disable_class_inherits_from_params_class")
7+
#PuppetLint.configuration.send("disable_variable_scope")
8+
PuppetLint.configuration.ignore_paths = ['pkg/**/*.pp', 'spec/**/*.pp', 'tests/**/*.pp']
9+
10+
task :default => [
11+
:syntax,
12+
:lint,
13+
:spec,
14+
]

manifests/init.pp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# == Class: udev
2+
#
3+
# simple template
4+
#
5+
class udev {
6+
7+
}

spec/classes/udev_spec.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
require 'spec_helper'
2+
3+
describe 'udev', :type => :class do
4+
5+
describe 'for osfamily RedHat' do
6+
it { should contain_class('udev') }
7+
end
8+
9+
end

0 commit comments

Comments
 (0)