code: def _add_environment_lib():
      
      # Create extra cookbook dir
      lib_path = os.path.join(env.node_work_path, cookbook_paths[0],
                              'chef_solo_envs', 'libraries')
      with hide('running', 'stdout'):
          sudo('mkdir -p {0}'.format(lib_path))
      # Add environment patch to the node's cookbooks
      put(os.path.join(basedir, 'environment.rb'),
          os.path.join(lib_path, 'environment.rb'), use_sudo=True)
docs: Adds the chef_solo_envs cookbook, which provides a library that adds
      environment attribute compatibility for chef-solo v10
      NOTE: Chef 10 only