Ahh.... It didn't occur to me that that's what you were going for here. I
wonder if there's a cleaner approach. I'll ponder it for a bit.

-Mat

On Mar 25, 2013, at 17:15, Teemu Matilainen <notifications@github.com>
wrote:

In lib/chef/knife/solo_cook.rb:

> @@ -133,10 +131,30 @@ def time(msg)
>        end
>
>        def librarian_install
> -        return unless File.exist? 'Cheffile'
> -        ui.msg "Installing Librarian cookbooks..."
> -        Librarian::Action::Resolve.new(librarian_env).run
> -        Librarian::Action::Install.new(librarian_env).run
> +        if !File.exist? 'Cheffile'
> +          Chef::Log.debug "Cheffile not found"
> +        elsif !load_librarian
> +          ui.warn [

Ack. But I don't want newlines inside the strings that go to ui.warn, so
I'll split the sentences to separare ui.warn calls.

—
Reply to this email directly or view it on
GitHub<https://github.com/matschaffer/knife-solo/pull/211/files#r3521250>
.