lib/chef/knife/google_project_quotas.rb in knife-google-3.3.7 vs lib/chef/knife/google_project_quotas.rb in knife-google-4.1.0
- old
+ new
@@ -48,10 +48,10 @@
def query_resource
service.list_project_quotas
end
def format_name(name)
- name.split("_").map { |x| x.capitalize }.join(" ")
+ name.split("_").map(&:capitalize).join(" ")
end
def format_number(number)
number % 1 == 0 ? number.to_i.to_s : number.to_s
end