summaryrefslogtreecommitdiff
path: root/lib/chef_zero/data_store/interface_v2.rb
blob: 8c02e2ef66b15f8b917cff69e530fde7ef0a02cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "chef_zero/data_store/interface_v1"

module ChefZero
  module DataStore
    # V2 assumes paths starting with /organizations/ORGNAME.  It also REQUIRES that
    # new organizations have these defaults:
    # chef-validator client: '{ "validator": true }',
    # chef-webui client: '{ "admin": true }'
    # _default environment: '{ "description": "The default Chef environment" }'
    # admin user: '{ "admin": "true" }'

    class InterfaceV2 < ChefZero::DataStore::InterfaceV1
      def interface_version
        2
      end
    end
  end
end