Sha256: ffc7be0ae0ab8deb585bf0615378c738de9c7b23a1b2391c1d473b977adad631
Contents?: true
Size: 495 Bytes
Versions: 6
Compression:
Stored size: 495 Bytes
Contents
require 'active_support/core_ext/hash/reverse_merge' require 'active_support/core_ext/hash/slice' require 'active_support/core_ext/hash/deep_merge' require 'active_support/core_ext/hash/indifferent_access' require 'capistrano' Dir.glob(File.join(File.dirname(__FILE__), '/recipes/*.rb')).sort.each { |f| load f } class DeepToHash def self.to_hash(value) case value when Hash Hash[value.to_hash.map { |key, value| [key, to_hash(value)] }] else value end end end
Version data entries
6 entries across 6 versions & 1 rubygems