Skip to content

Commit b10cfd5

Browse files
author
Matt Jones
committed
initial commit
0 parents  commit b10cfd5

15 files changed

+495
-0
lines changed

.gitignore

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/.bundle/
2+
/.yardoc
3+
/Gemfile.lock
4+
/_yardoc/
5+
/coverage/
6+
/doc/
7+
/pkg/
8+
/spec/reports/
9+
/tmp/
10+
*.bundle
11+
*.so
12+
*.o
13+
*.a
14+
mkmf.log
15+
.vagrant/*
16+
.DS_Store
17+
.idea/*
18+
*.gem

.rubocop.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
2+
MethodLength:
3+
Max: 200
4+
5+
LineLength:
6+
Max: 160
7+
8+
FileName:
9+
Enabled: false
10+
11+
PerceivedComplexity:
12+
Enabled: false
13+
14+
CyclomaticComplexity:
15+
Enabled: false
16+
17+
ClassLength:
18+
Enabled: false
19+
20+
IfUnlessModifier:
21+
Enabled: false
22+
23+
RegexpLiteral:
24+
Enabled: false
25+

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: ruby
2+
cache:
3+
- bundler
4+
install:
5+
- bundle install
6+
rvm:
7+
- 1.9.3
8+
- 2.0
9+
- 2.1
10+
notifications:
11+
email:
12+
recipients:
13+
- mattjones@yieldbot.com
14+
on_success: change
15+
on_failure: always
16+
17+
script:
18+
- 'bundle exec rake default'

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
#### 0.0.1.alpha.1

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[Development Documentation](http://sensu-plugins.github.io/development/)

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source 'https://rubygems.org'
2+
3+
gemspec

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Copyright (c) 2015 devops@yieldbot.com
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
## Sensu-Plugins-system-profile
2+
3+
[![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-system-profile.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-system-profile)
4+
[![Gem Version](https://badge.fury.io/rb/sensu-plugins-system-profile.svg)](http://badge.fury.io/rb/sensu-plugins-system-profile)
5+
[![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-system-profile/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-system-profile)
6+
[![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-system-profile/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-system-profile)
7+
[![Dependency Status](https://gemnasium.com/sensu-plugins/sensu-plugins-system-profile.svg)](https://gemnasium.com/sensu-plugins/sensu-plugins-system-profile)
8+
9+
## Functionality
10+
11+
## Files
12+
* bin/extension-system-profile
13+
14+
## Usage
15+
16+
## Installation
17+
18+
Add the public key (if you haven’t already) as a trusted certificate
19+
20+
```
21+
gem cert --add <(curl -Ls https://raw.githubusercontent.com/sensu-plugins/sensu-plugins.github.io/master/certs/sensu-plugins.pem)
22+
gem install sensu-plugins-system-profile -P MediumSecurity
23+
```
24+
25+
You can also download the key from /certs/ within each repository.
26+
27+
#### Rubygems
28+
29+
`gem install sensu-plugins-system-profile`
30+
31+
#### Bundler
32+
33+
Add *sensu-plugins-disk-checks* to your Gemfile and run `bundle install` or `bundle update`
34+
35+
#### Chef
36+
37+
Using the Sensu **sensu_gem** LWRP
38+
```
39+
sensu_gem 'sensu-plugins-system-profile' do
40+
options('--prerelease')
41+
version '0.0.1'
42+
end
43+
```
44+
45+
Using the Chef **gem_package** resource
46+
```
47+
gem_package 'sensu-plugins-system-profile' do
48+
options('--prerelease')
49+
version '0.0.1'
50+
end
51+
```
52+
53+
## Notes

Rakefile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
require 'bundler/gem_tasks'
2+
require 'rspec/core/rake_task'
3+
require 'yard'
4+
require 'github/markup'
5+
require 'rubocop/rake_task'
6+
require 'redcarpet'
7+
require 'yard/rake/yardoc_task'
8+
9+
desc 'Don\'t run Rubocop for unsupported versions'
10+
begin
11+
if RUBY_VERSION >= '2.0.0'
12+
args = [:spec, :make_bin_executable, :yard, :rubocop]
13+
else
14+
args = [:spec, :make_bin_executable, :yard]
15+
end
16+
end
17+
18+
YARD::Rake::YardocTask.new do |t|
19+
OTHER_PATHS = %w()
20+
t.files = ['lib/**/*.rb', 'bin/**/*.rb', OTHER_PATHS]
21+
t.options = %w(--markup-provider=redcarpet --markup=markdown --main=README.md --files CHANGELOG.md)
22+
end
23+
24+
Rubocop::RakeTask.new
25+
26+
RSpec::Core::RakeTask.new(:spec) do |r|
27+
r.pattern = FileList['**/**/*_spec.rb']
28+
end
29+
30+
desc 'Make all plugins executable'
31+
task :make_bin_executable do
32+
`chmod -R +x bin/***/*.rb`
33+
end
34+
35+
task default: args

Vagrantfile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
VAGRANTFILE_API_VERSION = '2'
5+
6+
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
7+
8+
config.vm.box = 'chef/centos-6.6'
9+
config.vm.box_download_checksum = true
10+
config.vm.box_download_checksum_type = 'md5'
11+
config.vm.hostname = 'sensu-plugins-dev'
12+
13+
script = <<EOF
14+
sudo yum update -y
15+
sudo yum groupinstall -y development
16+
sudo yum install -y vim nano
17+
#sudo yum install -y ImagicMagic ImageMagick-devel mysql-devel # needed for bundle install
18+
gpg2 --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
19+
curl -L get.rvm.io | bash -s stable
20+
source /home/vagrant/.rvm/scripts/rvm
21+
rvm reload
22+
#rvm install 1.9.3
23+
rvm install 2.1.4
24+
#rvm install 2.0.0
25+
#rvm use 1.9.3@sensu_plugins --create
26+
#rvm use 2.0.0@sensu_plugins --create
27+
rvm use 2.1.4@sensu_plugins --create
28+
rvm use 2.1.4@sensu_plugins --default
29+
EOF
30+
31+
config.vm.provision 'shell', inline: script, privileged: false
32+
end

0 commit comments

Comments
 (0)