mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Alphabetize existing helpers
This commit is contained in:
parent
a50b9bae10
commit
4f880497b7
1 changed files with 4 additions and 4 deletions
|
|
@ -13,14 +13,14 @@ module Vmpooler
|
|||
hostname
|
||||
end
|
||||
|
||||
def validate_date_str(date_str)
|
||||
/^\d{4}-\d{2}-\d{2}$/ === date_str
|
||||
end
|
||||
|
||||
def mean(list)
|
||||
s = list.map(&:to_f).reduce(:+).to_f
|
||||
(s > 0 && list.length > 0) ? s / list.length.to_f : 0
|
||||
end
|
||||
|
||||
def validate_date_str(date_str)
|
||||
/^\d{4}-\d{2}-\d{2}$/ === date_str
|
||||
end
|
||||
end
|
||||
|
||||
get "#{api_prefix}/status/?" do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue