summaryrefslogtreecommitdiff
path: root/lib/chef/sandbox.rb
blob: 28bc4ffa12457f5ef585148f4674947c3ac4ea26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class Chef
  class Sandbox
    # I DO NOTHING!!

    # So, the reason we have a completely empty class here is so that
    # Chef 11 clients do not choke when interacting with Chef 10
    # servers.  The original Chef::Sandbox class (that actually did
    # things) has been removed since its functionality is no longer
    # needed for Chef 11.  However, since we still use the JSON gem
    # and make use of its "auto-inflation" of classes (driven by the
    # contents of the 'json_class' key in all of our JSON), any
    # sandbox responses from a Chef 10 server to a Chef 11 client
    # would cause knife to crash.  The JSON gem would attempt to
    # auto-inflate based on a "json_class": "Chef::Sandbox" hash
    # entry, but would not be able to find a Chef::Sandbox class!
    #
    # This is a workaround until such time as we can completely remove
    # the reliance on the "json_class" field.
  end
end