WIP: Berksfile support

Reworked Berksfile support. There is one more thing to solve to properly use Berkshelfe we should not use any local cookbooks and only use cookbooks from Berksfile. Otherwise I use temporary directory for berks vendor if it's not said other way.

1) README
2) tests 

Will be done after initial approval.
Done.


On Thu, Jun 26, 2014 at 3:18 PM, Miquel Torres <notifications@github.com>
wrote:

> In littlechef/runner.py:
>
> > +    try:
> > +        env.berksfile = config.get('kitchen', 'berksfile')
> > +    except (ConfigParser.NoSectionError, ConfigParser.NoOptionError) as e:
> > +        env.berksfile = None
> > +    else:
> > +        try:
> > +            env.berksfile_cookbooks_directory = config.get('kitchen', 'berksfile_cookbooks_directory')
> > +            littlechef.cookbook_paths.append(env.berksfile_cookbooks_directory)
> > +        except (ConfigParser.NoSectionError, ConfigParser.NoOptionError) as e:
> > +            if env.berksfile:
> > +                env.berksfile_cookbooks_directory = tempfile.mkdtemp('littlechef-berks')
> > +                littlechef.cookbook_paths.append(env.berksfile_cookbooks_directory)
> > +            else:
> > +                env.berksfile_cookbooks_directory = None
> > +
> > +    if env.berksfile:
>
> This can also be put inside the outer else. If there is no config section
> it will never be executed anyway.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/tobami/littlechef/pull/210/files#r14239146>.
>



-- 


Regards.

Adam