summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md8
-rwxr-xr-xbin/oxidized17
-rw-r--r--oxidized.gemspec8
3 files changed, 32 insertions, 1 deletions
diff --git a/README.md b/README.md
index 113941b..b6e52de 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,13 @@
* restful API to reload list of nodes (GET /nodes/reload)
# Install
- * early days, but try to lib/tst and edit ~/.config/oxidized/config
+ * early days, but try:
+ 1 rake build
+ 1 gem install gem/oxidized*
+ 1 oxidized
+ 1 vi ~/.config/oxidized
+ 1 (maybe point to your rancid/router.db or copy it there)
+ 1 oxidized
# API
## Input
diff --git a/bin/oxidized b/bin/oxidized
new file mode 100755
index 0000000..564bb16
--- /dev/null
+++ b/bin/oxidized
@@ -0,0 +1,17 @@
+#!/usr/bin/env ruby
+
+require 'oxidized'
+
+begin
+ Oxidized.new
+rescue => e
+ open Oxidized::Config::Crash, 'w' do |file|
+ file.puts '-' * 50
+ file.puts Time.now.utc
+ file.puts e.message
+ file.puts '-' * 50
+ file.puts e.backtrace
+ file.puts '-' * 50
+ end
+ warn "ERROR: #{e}"
+end
diff --git a/oxidized.gemspec b/oxidized.gemspec
index 879475d..7a3d2cf 100644
--- a/oxidized.gemspec
+++ b/oxidized.gemspec
@@ -4,8 +4,16 @@ Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.authors = [ 'Saku Ytti' ]
s.email = %w( saku@ytti.fi )
+ s.homepage = 'http://github.com/ytti/oxidized'
s.summary = 'feeble attempt at rancid'
+ s.description = 'software to fetch configuration from network devices and store them'
s.rubyforge_project = s.name
s.files = `git ls-files`.split("\n")
+ s.executables = %w( oxidized )
s.require_path = 'lib'
+
+ s.add_dependency 'sequel'
+ s.add_dependency 'sqlite3'
+ s.add_dependency 'net-ssh'
+ s.add_dependency 'grit'
end