lib/terraformer/cli.rb in terraform-exporter-0.0.2 vs lib/terraformer/cli.rb in terraform-exporter-0.0.3
- old
+ new
@@ -16,9 +16,11 @@
desc "dm", "Datadog Monitor"
def dm
execute(Terraformer::Resource::DatadogMonitor, options)
end
+ private
+
def symbolize(obj)
return obj.reduce({}) do |memo, (k, v)|
memo.tap { |m| m[k.to_sym] = symbolize(v) }
end if obj.is_a? Hash