{"action":"created","issue":{"url":"https://api.github.com/repos/higanworks/knife-zero/issues/45","labels_url":"https://api.github.com/repos/higanworks/knife-zero/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/higanworks/knife-zero/issues/45/comments","events_url":"https://api.github.com/repos/higanworks/knife-zero/issues/45/events","html_url":"https://github.com/higanworks/knife-zero/issues/45","id":88217350,"number":45,"title":"Tighter berkshelf integration","user":{"login":"patcon","id":305339,"avatar_url":"https://avatars.githubusercontent.com/u/305339?v=3","gravatar_id":"","url":"https://api.github.com/users/patcon","html_url":"https://github.com/patcon","followers_url":"https://api.github.com/users/patcon/followers","following_url":"https://api.github.com/users/patcon/following{/other_user}","gists_url":"https://api.github.com/users/patcon/gists{/gist_id}","starred_url":"https://api.github.com/users/patcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcon/subscriptions","organizations_url":"https://api.github.com/users/patcon/orgs","repos_url":"https://api.github.com/users/patcon/repos","events_url":"https://api.github.com/users/patcon/events{/privacy}","received_events_url":"https://api.github.com/users/patcon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-14T17:13:58Z","updated_at":"2015-11-20T03:37:33Z","closed_at":null,"body":"I currently have a step in my projects where `berks vendor cookbooks` must be run in order to generate the cookbooks_path for the chef repo. I could imagine this leading to confusion if the Berksfile is updated, but the cookbook path is not re-vendored. Might be nice if this happened automatically (as knife-solo does). We could steal the code from knife-solo :)"},"comment":{"url":"https://api.github.com/repos/higanworks/knife-zero/issues/comments/158269860","html_url":"https://github.com/higanworks/knife-zero/issues/45#issuecomment-158269860","issue_url":"https://api.github.com/repos/higanworks/knife-zero/issues/45","id":158269860,"user":{"login":"sawanoboly","id":272388,"avatar_url":"https://avatars.githubusercontent.com/u/272388?v=3","gravatar_id":"","url":"https://api.github.com/users/sawanoboly","html_url":"https://github.com/sawanoboly","followers_url":"https://api.github.com/users/sawanoboly/followers","following_url":"https://api.github.com/users/sawanoboly/following{/other_user}","gists_url":"https://api.github.com/users/sawanoboly/gists{/gist_id}","starred_url":"https://api.github.com/users/sawanoboly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawanoboly/subscriptions","organizations_url":"https://api.github.com/users/sawanoboly/orgs","repos_url":"https://api.github.com/users/sawanoboly/repos","events_url":"https://api.github.com/users/sawanoboly/events{/privacy}","received_events_url":"https://api.github.com/users/sawanoboly/received_events","type":"User","site_admin":false},"created_at":"2015-11-20T03:37:33Z","updated_at":"2015-11-20T03:37:33Z","body":"@patcon \r\n\r\nI found little hack for tighter integration.\r\nin `knife.rb`\r\n\r\n```\r\n## knife.rb will be read twice at run. (before launch chef-zero locally and before run knife.)\r\n## And configuration for chef-zero doesn't has key `color`.\r\nif ARGV[0..1] == [\"zero\", \"converge\"] && ! Chef::Config.has_key?(:color)\r\n  system('bundle exec berks vendor')\r\nend\r\n```\r\n\r\nAnd I have a cheap idea for integrate with other tools. That is adding option `zero.before_command` to add hook before connect via ssh. How do you feel about it?"}}