README.md in knife-spork-1.3.4 vs README.md in knife-spork-1.4.0

- old
+ new

@@ -50,10 +50,11 @@ preserve_constraint_operators: true environment_path: "/home/me/environments" role_path: "/home/me/roles" custom_plugin_path: "/home/me/spork-plugins" always_promote_remote: true +skip_berkshelf: false json_options: indent: " " plugins: campfire: account: myaccount @@ -86,10 +87,22 @@ graphite: server: graphite.mydomain.com port: 2003 eventinator: url: http://eventinator.mydomain.com/events/oneshot + slack: + api_token: abc123 + channel: "#sysops" + teamname: myteam + username: knife + rubocop: + epic_fail: true + show_name: false + autocorrect: false + out_file: <file> + sev_level: <C|W|E> + lint: false ``` #### Default Environments The `default_environments` directive allows you to specify a default list of environments you want to promote changes to. If this option is configured and you *omit* the environment parameter when promoting KnifeSpork will promote to all environments in this list. @@ -103,10 +116,13 @@ The `preserve_constraint_operators` directive causes spork promote to preserve existing version constraint operators in your environment files, only updating the version number. This directive is disabled by default, which causes spork to always use the `=` constraint. #### Always Promote Remote The `always_promote_remote` directive allows you to tell spork promote to always act as if the --remote option had been specified. This will also have the same effect on spork omni. This option should only be used if you're sure you want all changes to be uploaded to the server as soon as you run promote. +#### Skip Berkshelf +The `skip_berkshelf` directive is a temporary flag added in [#138](https://github.com/jonlives/knife-spork/issues/138) to allow Berkshelf functionality to be optionally bypassed until Berkshelf 3 support has been added to knife-spork per [#85](https://github.com/jonlives/knife-spork/issues/85). It simply removed the :Berkshelf constant from the namespace used by knife-spork. + #### JSON Options The `json_options` directive allows you to tell spork to pass options to [pretty_generate](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/json/rdoc/JSON.html#method-i-pretty_generate) to control the format of the resulting json #### Environment Path The `environment_path` allows you to specify the path to where you store your chef environment json files. If this parameter is not specified, spork will default to using the first element of your cookbook_path, replacing the word "cookbooks" with "environments" @@ -135,19 +151,20 @@ #### Example ```text $ knife spork info Config Hash: -{"plugins"=>{"git"=>{"enabled"=>true}, "irccat"=>{"server"=>"irccat.mydomain.com", "port"=>12345, "gist"=>"usr/bin/gist", "channel"=>["#chef-announce"]}, "graphite"=>{"server"=>"graphite.mydomain.com", "port"=>2003}, "eventinator"=>{"url"=>"http://eventinator.mydomain.com/events/oneshot"}}, "default_environments"=>["development", "production"], "version_change_threshold"=>2, "pplugins"=>{"foodcritic"=>{"fail_tags"=>["style,correctness,test"], "tags"=>["~portability"], "include_rules"=>["config/rules.rb"]}}} +{"plugins"=>{"git"=>{"enabled"=>true}, "irccat"=>{"server"=>"irccat.mydomain.com", "port"=>12345, "gist"=>"usr/bin/gist", "channel"=>["#chef-announce"]}, "graphite"=>{"server"=>"graphite.mydomain.com", "port"=>2003}, "slack"=>{"api_token"=>"abc123", "channel"=>"random", "teamname"=>"myteam"}, "eventinator"=>{"url"=>"http://eventinator.mydomain.com/events/oneshot"}}, "default_environments"=>["development", "production"], "version_change_threshold"=>2, "pplugins"=>{"foodcritic"=>{"fail_tags"=>["style,correctness,test"], "tags"=>["~portability"], "include_rules"=>["config/rules.rb"]}}} Plugins: KnifeSpork::Plugins::Campfire: disabled KnifeSpork::Plugins::Eventinator: enabled KnifeSpork::Plugins::Foodcritic: disabled KnifeSpork::Plugins::Git: enabled KnifeSpork::Plugins::Graphite: enabled KnifeSpork::Plugins::HipChat: disabled +KnifeSpork::Plugins::Slack: enabled KnifeSpork::Plugins::Irccat: enabled ``` Spork Check ----------- @@ -371,10 +388,10 @@ Adding version constraint apache2 = 0.4.0 Saving changes to development.json Promotion complete. Don't forget to upload your changed development.json to Chef Server ``` -Spork Environnent Check +Spork Environment Check ------------- Environment check provides the ability to validate a local chef environment file is locked to versions that actually exist on the chef server. Running this check prior to uploading your environment files is recommended as it can prevent your chef server from becoming unresponsive due to a version constraint that will never be valid. If you run environment check with no options it will collect all invalid cookbook versions before reporting a failure.