Sha256: fcfa482937944d2ce181d69e98479f8a08305676ca1bb801288491e805565cc7

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

require 'buff/config/json'

module Berkshelf::API
  class Config < Buff::Config::JSON
    class << self
      # @return [String]
      def default_path
        File.expand_path("~/.berkshelf/api-server/config.json")
      end
    end

    attribute 'endpoints',
      type: Array,
      default: [
        {
          type: "opscode",
          options: {
            url: 'http://cookbooks.opscode.com/api/v1'
          }
        }
      ]
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
berkshelf-api-0.1.0 lib/berkshelf/api/config.rb