First commit, gem structure.
This commit is contained in:
commit
ec621dbfde
9 changed files with 60 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
Gemfile.lock
|
2
.rspec
Normal file
2
.rspec
Normal file
|
@ -0,0 +1,2 @@
|
|||
--color
|
||||
--format progress
|
3
Gemfile
Normal file
3
Gemfile
Normal file
|
@ -0,0 +1,3 @@
|
|||
source :rubygems
|
||||
|
||||
gemspec
|
8
README.md
Normal file
8
README.md
Normal file
|
@ -0,0 +1,8 @@
|
|||
NSCA Client
|
||||
===========
|
||||
|
||||
NSCA is a Linux/Unix daemon allows you to integrate passive alerts and checks
|
||||
from remote machines and applications with Nagios. Useful for processing
|
||||
security alerts, as well as redundant and distributed Nagios setups.
|
||||
|
||||
**This client allows you to send easily passive alerts and checks.**
|
2
Rakefile
Normal file
2
Rakefile
Normal file
|
@ -0,0 +1,2 @@
|
|||
#!/usr/bin/env rake
|
||||
require "bundler/gem_tasks"
|
0
lib/nsca/client.rb
Normal file
0
lib/nsca/client.rb
Normal file
5
lib/nsca/client/version.rb
Normal file
5
lib/nsca/client/version.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
module NSCA
|
||||
module Client
|
||||
VERSION = '1.0.0'
|
||||
end
|
||||
end
|
22
nsca-client.gemspec
Normal file
22
nsca-client.gemspec
Normal file
|
@ -0,0 +1,22 @@
|
|||
lib = File.expand_path('../lib', __FILE__)
|
||||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
||||
require "nsca/client/version"
|
||||
|
||||
Gem::Specification.new do |gem|
|
||||
gem.authors = `git log --raw | grep Author: | awk -F ': | <|>' '{ print $2 }' | sort | uniq`.split("\n")
|
||||
gem.email = `git log --raw | grep Author: | awk -F ': | <|>' '{ print $3 }' | sort | uniq`.split("\n")
|
||||
gem.description = %q{Send passive notifications to Nagios Service Check Acceptor (NSCA).}
|
||||
gem.summary = %q{NSCA Client}
|
||||
gem.homepage = "http://felipecvo.github.com/nsca-client"
|
||||
|
||||
gem.files = `git ls-files`.split($\)
|
||||
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
||||
gem.test_files = gem.files.grep(%r{^spec/})
|
||||
gem.name = "nsca-client"
|
||||
gem.require_paths = ["lib"]
|
||||
gem.version = NSCA::Client::VERSION
|
||||
|
||||
gem.add_dependency "send_nsca"
|
||||
|
||||
gem.add_development_dependency "rspec"
|
||||
end
|
17
spec/spec_helper.rb
Normal file
17
spec/spec_helper.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
# This file was generated by the `rspec --init` command. Conventionally, all
|
||||
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
||||
# Require this file using `require "spec_helper"` to ensure that it is only
|
||||
# loaded once.
|
||||
#
|
||||
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
||||
RSpec.configure do |config|
|
||||
config.treat_symbols_as_metadata_keys_with_true_values = true
|
||||
config.run_all_when_everything_filtered = true
|
||||
config.filter_run :focus
|
||||
|
||||
# Run specs in random order to surface order dependencies. If you find an
|
||||
# order dependency and want to debug it, you can fix the order by providing
|
||||
# the seed, which is printed after each run.
|
||||
# --seed 1234
|
||||
config.order = 'random'
|
||||
end
|
Loading…
Reference in a new issue