lib/chef/knife/cookbook_github_install.rb in knife-github-cookbooks-0.1.3 vs lib/chef/knife/cookbook_github_install.rb in knife-github-cookbooks-0.1.4
- old
+ new
@@ -100,11 +100,12 @@
@github_user, @github_repo, @github_branch = name_args.first.split('/')
unless @github_user && @github_repo
ui.error("Expected a github user and a repo to download from: jnewland/chef_ipmi")
exit 1
end
- @cookbook_name = @github_repo.gsub(/[_-]?chef[-_]?/, '').gsub(/[_-]?cookbook[-_]?/, '')
+ @cookbook_name = @github_repo.gsub(/[_-]?chef(?!-client|-server|_handler)[-_]?/, '').
+ gsub(/[_-]?cookbook[-_]?/, '')
end
end
def temp_clone_path
"_tmp_chef_#{@cookbook_name}"
@@ -146,6 +147,7 @@
@github_branch ||= 'master'
end
end
end
-end
\ No newline at end of file
+end
+