Closed hrak closed 9 years ago
My config:
Config Hash:
{"default_environments"=>["production", "development"], "version_change_threshold"=>2, "environment_path"=>"environments", "plugins"=>{"git"=>{"enabled"=>true}, "hipchat"=>{"server_url"=>"https://hipchat.company.com", "api_version"=>"v2", "api_token"=>"TOKEN", "rooms"=>["Chef"], "notify"=>false, "color"=>"yellow"}}}
Plugins:
KnifeSpork::Plugins::Grove: disabled
KnifeSpork::Plugins::Influxdb: disabled
KnifeSpork::Plugins::Graphite: disabled
KnifeSpork::Plugins::Eventinator: disabled
KnifeSpork::Plugins::StatusNet: disabled
KnifeSpork::Plugins::Rubocop: disabled
KnifeSpork::Plugins::HipChat: enabled
KnifeSpork::Plugins::Jabber: disabled
KnifeSpork::Plugins::Irccat: disabled
KnifeSpork::Plugins::Git: enabled
KnifeSpork::Plugins::Slack: disabled
KnifeSpork::Plugins::Campfire: disabled
KnifeSpork::Plugins::Foodcritic: disabled
Commands tried: knife spork promote --remote production ntp knife spork promote production ntp --remote knife spork promote production --remote ntp
all result in same error. I'm guessing the author of #153 is using spork omni, which takes a '--environment' argument. But when calling spork promote directly that's not the case.
@hrak thanks for reporting this! I'll take a look at this and try and get a fix out in the next couple of days.
Again, my sincere apologies for this. I messed up while creating the pull request and didn't include the last commit. :(
@danieleva I made a comment to your fix. Hope you can check it out.
@jeunito Thanks for that, I updated the pull request :D
This has been released in the 1.5.1 release :)
Using knife-spork 1.5.0 with ChefDK-0.4.0, when promoting a cookbook to production i got the following: