UI messaging is inconsistant during cook command #215
Conversation
Agreed! There are those timing blocks around a bunch of stuff. Maybe it'd -Mat about.me/matschaffer On Thu, Feb 28, 2013 at 9:03 AM, David Radcliffe
|
+1. Or +2 if the same standard is applied to other commands (at least prepare), too. |
Something like this? step "Validating options..." do
validate!
end
step "Bootstrapping Chef..." do
bootstrap.bootstrap!
end
step "Generating node config..." do
generate_node_config
end Or should I move the call to step to each method? |
That feels a little verbose, but could work. What about extracting the step :validate { validate! } Could make i18n easier down the road. -Mat about.me/matschaffer On Thu, Feb 28, 2013 at 9:32 AM, David Radcliffe
|
Makes me wish this were clojure. -Mat about.me/matschaffer On Thu, Feb 28, 2013 at 9:34 AM, Mat Schaffer mat@schaffer.me wrote:
|
@matschaffer Using the |
The gem would be worth a look. But if you think it'll get in the way of Also. How does knife-ec2 do their logging? Maybe we should just mimic that? On Feb 28, 2013, at 9:47, David Radcliffe notifications@github.com wrote: @matschaffer https://github.com/matschaffer Using the i18n gem or — |
knife-ec2 uses simply |
That's a sound call. You think there's value in a "step" abstraction? As -Mat about.me/matschaffer On Thu, Feb 28, 2013 at 10:15 AM, Teemu Matilainen <notifications@github.com
|
After starting to implement, I'm thinking it might be unnecessary. There are enough cases where logic is in the methods (like generate_node_config) that make this a bit awkward. That said, I can go either direction. |
@dwradcliffe trust your instincts. Looking forward to seeing what you come up with! :) |
I didn't get to test it yet but looks good! Anyway I think that the |
@tmatilai Good call, I've removed it. |
Looks good, but I get this test error for some reason: https://gist.github.com/matschaffer/5064531 |
@matschaffer I used |
Sweet, thanks! |
UI messaging is inconsistant during cook command
There is one ui message for checking the chef version, and one debug message, and the rest of the parts don't give any messaging. This should be standardized. IMO, a ui message for each step would be nice to keep me updated. I'm working on a PR for this now.