Sha256: 1e380b0334f66cadddad3ab1aa9d0429484c730c558440f88b625b62923a345b

Contents?: true

Size: 305 Bytes

Versions: 5

Compression:

Stored size: 305 Bytes

Contents

class WhiskeyDisk
  class Config
    module ScopeHelper
      def repository_depth(data, depth = 0)
        raise 'no repository found' unless data.respond_to?(:has_key?)
        return depth if data.has_key?('repository')
        repository_depth(data.values.first, depth + 1)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
ol-whisk_deploy-0.6.25 lib/whiskey_disk/config/filters/modules/scope_helper.rb
ol-whisk_deploy-0.6.26 lib/whiskey_disk/config/filters/modules/scope_helper.rb
whisk_deploy-0.6.26 lib/whiskey_disk/config/filters/modules/scope_helper.rb
whiskey_disk-0.6.24 lib/whiskey_disk/config/filters/modules/scope_helper.rb
whiskey_disk-0.6.23 lib/whiskey_disk/config/filters/modules/scope_helper.rb