Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove dead code #43

Merged
merged 1 commit into from May 22, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion bin/riemann-health
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ class Riemann::Tools::Health
end

def alert(service, state, metric, description)
puts service
report(
:service => service.to_s,
:state => state.to_s,
Expand Down
13 changes: 0 additions & 13 deletions lib/riemann/tools.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,12 @@ def options
end
end

def initialize
super
end

def tool_options
{}
end

# Returns parsed options (cached) from command line.
def options
@options ||= self.class.options
end
alias :opts :options

# Add a new command line option
def opt(*a)
@option_parser.opt *a
end

def attributes
@attributes ||= Hash[options[:attribute].map do |attr|
k,v = attr.split(/=/)
Expand Down