ruminate 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +2 -3
- data/lib/ruminate/plugin.rb +1 -1
- data/lib/ruminate.rb +4 -4
- metadata +4 -4
data/README.md
CHANGED
@@ -92,13 +92,12 @@ When you deploy, perform the following:
|
|
92
92
|
|
93
93
|
rake ruminate:create_plugins
|
94
94
|
sudo rake ruminate:create_links
|
95
|
+
sudo /etc/init.d/munin-node restart
|
95
96
|
|
96
97
|
## TODO
|
97
98
|
|
98
99
|
Too much repitition. Create templates for plot stuff in timers, etc.
|
99
100
|
|
100
|
-
Probably need to modify rumx bean to not reset error counts. Use trending for info.
|
101
|
-
|
102
101
|
Make sure the example above actually works.
|
103
102
|
|
104
103
|
## Author
|
@@ -107,4 +106,4 @@ Brad Pardee
|
|
107
106
|
|
108
107
|
## Copyright
|
109
108
|
|
110
|
-
Copyright (c) 2011 Clarity Services. See LICENSE for details.
|
109
|
+
Copyright (c) 2011-2012 Clarity Services. See LICENSE for details.
|
data/lib/ruminate/plugin.rb
CHANGED
data/lib/ruminate.rb
CHANGED
@@ -71,16 +71,16 @@ ruminate(
|
|
71
71
|
def self.create_links(config_file, plugin_dir)
|
72
72
|
config = YAML.load(File.read(config_file))
|
73
73
|
munin_plugin_dir = config['munin_plugin_dir'] || '/etc/munin/plugins'
|
74
|
-
|
74
|
+
full_plugin_dir = File.expand_path(plugin_dir)
|
75
75
|
Dir["#{munin_plugin_dir}/*"].each do |plugin_file|
|
76
76
|
next unless File.symlink?(plugin_file)
|
77
77
|
dest = File.readlink(plugin_file)
|
78
|
-
if dest.
|
78
|
+
if File.dirname(dest).end_with?(plugin_dir)
|
79
79
|
puts "Removing #{plugin_file}"
|
80
|
-
FileUtils.
|
80
|
+
FileUtils.rm_f(plugin_file)
|
81
81
|
end
|
82
82
|
end
|
83
|
-
Dir["#{
|
83
|
+
Dir["#{full_plugin_dir}/*"].each do |plugin_file|
|
84
84
|
new_plugin_file = File.join(munin_plugin_dir, File.basename(plugin_file))
|
85
85
|
puts "Creating link for #{new_plugin_file}"
|
86
86
|
File.symlink(plugin_file, new_plugin_file)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruminate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-01-
|
12
|
+
date: 2012-01-05 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rumx
|
16
|
-
requirement: &
|
16
|
+
requirement: &70280445823820 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.1.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70280445823820
|
25
25
|
description: Simple process for generating munin plugins to monitor your Rails application
|
26
26
|
email:
|
27
27
|
- bradpardee@gmail.com
|