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

Version Path
marcosgz-cap-recipe-0.0.14 lib/capistrano/recipe.rb
marcosgz-cap-recipe-0.0.13 lib/capistrano/recipe.rb
marcosgz-cap-recipe-0.0.12 lib/capistrano/recipe.rb
marcosgz-cap-recipe-0.0.11 lib/capistrano/recipe.rb
marcosgz-cap-recipe-0.0.10 lib/capistrano/recipe.rb
marcosgz-cap-recipe-0.0.9 lib/capistrano/recipe.rb