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)
Adds the chef_solo_envs cookbook, which provides a library that adds
dataset/ETHPy150Open tobami/littlechef/littlechef/chef.py/_add_environment_lib