我在使用Git插件获取刀具时会遇到问题并推送到它的回购中。
这是knife spork info
的输出:
{"version_change_threshold"=>2,
"preserve_constraint_operators"=>true,
"always_promote_remote"=>true,
"skip_berkshelf"=>false,
"role_match_file_name"=>true,
"role_safe_delete"=>true,
"json_options"=>{"indent"=>" "},
"plugins"=>{
"git"=>{
"auto_push"=>true,
"remote"=>"origin",
"branch"=>"master"
}
}}
[...]
KnifeSpork::Plugins::Git: enabled
[...]
当我执行knife spork bump COOKBOOK minor
:
Git: Pulling latest changes from /path/to/chef-repo/cookbooks/COOKBOOK
Pulling latest changes from git submodules (if any)
Successfully bumped base to v0.2.0!
Git add'ing /path/to/chef-repo/cookbooks/COOKBOOK/metadata.rb
只添加它...然后我knife spork upload COOKBOOK
:
Git: Pulling latest changes from /path/to/chef-repo/cookbooks/COOKBOOK
Pulling latest changes from git submodules (if any)
Freezing COOKBOOK at 0.2.0...
Successfully uploaded COOKBOOK@0.2.0!
将菜谱上传到厨师服务器,但没有提交回购或尝试推送......并且没有错误输出:/
答案 0 :(得分:0)
好的,是的,我误解了流程......
所以你必须先创建你的环境:
knife spork environment create production
knife spork environment create development
然后,一旦食谱准备好环境,你promote
knife spork promote development COOKBOOK
然后提交并推送