Code Review
/
packages
/
precise
/
mcollective.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Updated mcollective.init according to OSCI-658
[packages/precise/mcollective.git]
/
lib
/
mcollective
/
aggregate
/
result
/
numeric_result.rb
diff --git a/lib/mcollective/aggregate/result/numeric_result.rb
b/lib/mcollective/aggregate/result/numeric_result.rb
new file mode 100644
(file)
index 0000000..
ffa77ba
--- /dev/null
+++ b/
lib/mcollective/aggregate/result/numeric_result.rb
@@ -0,0
+1,13
@@
+module MCollective
+ class Aggregate
+ module Result
+ class NumericResult<Base
+ def to_s
+ return "" if @result[:value].nil?
+
+ return @aggregate_format % @result[:value]
+ end
+ end
+ end
+ end
+end