diff options
author | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
commit | 51cfbdc4d16739caac4d946fadbe678444aafe34 (patch) | |
tree | 56dfd8f1cd9fd933de27268b32402e955a43ac2b /lib/chef/tasks | |
parent | 05064423057d4cf46f4713b81b08829cf6d20af6 (diff) | |
download | chef-51cfbdc4d16739caac4d946fadbe678444aafe34.tar.gz |
Use double quotes by default
This is an entirely mechanically generated (chefstyle -a) change, to go
along with chef/chefstyle#5 . We should pick something and use it
consistently, and my opinion is that double quotes are the appropriate
thing.
Diffstat (limited to 'lib/chef/tasks')
-rw-r--r-- | lib/chef/tasks/chef_repo.rake | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/lib/chef/tasks/chef_repo.rake b/lib/chef/tasks/chef_repo.rake index 14a5bcc0c1..977f8eb67c 100644 --- a/lib/chef/tasks/chef_repo.rake +++ b/lib/chef/tasks/chef_repo.rake @@ -16,8 +16,8 @@ # See the License for the specific language governing permissions and # limitations under the License. # -TOPDIR = '.' -require 'rake' +TOPDIR = "." +require "rake" desc "By default, print deprecation notice" task :default do @@ -27,37 +27,37 @@ end desc "Install the latest copy of the repository on this Chef Server" task :install do puts deprecation_notice - puts 'The `install` rake task, which included the `update`, `roles`, and' - puts '`upload_cookbooks` rake tasks is replaced by the `knife upload`' + puts "The `install` rake task, which included the `update`, `roles`, and" + puts "`upload_cookbooks` rake tasks is replaced by the `knife upload`" puts 'sub-command. The notion of "installing" the chef-repo to the Chef' - puts 'Server. Previously the `install` task would manage server and' - puts 'client configuration. This will not work at all on Chef Server 11+' - puts 'and client configuration should be managed with the `chef-client`' - puts 'cookbook.' + puts "Server. Previously the `install` task would manage server and" + puts "client configuration. This will not work at all on Chef Server 11+" + puts "and client configuration should be managed with the `chef-client`" + puts "cookbook." end desc "Update your repository from source control" task :update do puts deprecation_notice - puts 'The `update` rake task previously updated the chef-repo from' - puts 'the detected version control system, either svn or git. However,' - puts 'it has not been recommended for users for years. Most users in' - puts 'the community use `git`, so the Subversion functionality is not' - puts 'required, and `git pull` is sufficient for many workflows. The' - puts 'world of git workflows is rather different now than it was when' - puts 'this rake task was created.' + puts "The `update` rake task previously updated the chef-repo from" + puts "the detected version control system, either svn or git. However," + puts "it has not been recommended for users for years. Most users in" + puts "the community use `git`, so the Subversion functionality is not" + puts "required, and `git pull` is sufficient for many workflows. The" + puts "world of git workflows is rather different now than it was when" + puts "this rake task was created." end desc "Create a new cookbook (with COOKBOOK=name, optional CB_PREFIX=site-)" task :new_cookbook do - cb = ENV['COOKBOOK'] || 'my_cookbook_name' + cb = ENV["COOKBOOK"] || "my_cookbook_name" puts deprecation_notice - puts 'The `new_cookbook` rake task is replaced by the ChefDK cookbook' - puts 'generator. To generate a new cookbook run:' + puts "The `new_cookbook` rake task is replaced by the ChefDK cookbook" + puts "generator. To generate a new cookbook run:" puts puts "chef generate cookbook #{ENV['COOKBOOK']}" puts - puts 'Or, if you are not using ChefDK, use `knife cookbook create`:' + puts "Or, if you are not using ChefDK, use `knife cookbook create`:" puts puts "knife cookbook create #{ENV['COOKBOOK']}" end @@ -65,46 +65,46 @@ end desc "Create a new self-signed SSL certificate for FQDN=foo.example.com" task :ssl_cert do puts deprecation_notice - puts 'The `ssl_cert` rake task is superseded by using the CHEF-maintained' + puts "The `ssl_cert` rake task is superseded by using the CHEF-maintained" puts '`openssl` cookbook\'s `openssl_x509` resource which can generate' - puts 'self-signed certificate chains as convergent resources.' + puts "self-signed certificate chains as convergent resources." puts - puts 'https://supermarket.getchef.com/cookbooks/openssl' + puts "https://supermarket.getchef.com/cookbooks/openssl" end desc "Build cookbook metadata.json from metadata.rb" task :metadata do puts deprecation_notice - puts 'The `metadata` rake task is not recommended. Cookbook' - puts '`metadata.json` is automatically generated from `metadata.rb`' - puts 'by `knife` when uploading cookbooks to the Chef Server.' + puts "The `metadata` rake task is not recommended. Cookbook" + puts "`metadata.json` is automatically generated from `metadata.rb`" + puts "by `knife` when uploading cookbooks to the Chef Server." end desc "Update roles" task :roles do puts deprecation_notice - puts 'The `roles` rake task is not recommended. If you are using Ruby' - puts 'role files (roles/*.rb), you can upload them all with:' + puts "The `roles` rake task is not recommended. If you are using Ruby" + puts "role files (roles/*.rb), you can upload them all with:" puts - puts 'knife role from file roles/*' + puts "knife role from file roles/*" puts - puts 'If you are using JSON role files (roles/*.json), you can upload' - puts 'them all with:' + puts "If you are using JSON role files (roles/*.json), you can upload" + puts "them all with:" puts - puts 'knife upload roles/*.json' + puts "knife upload roles/*.json" end desc "Update a specific role" task :role do puts deprecation_notice - puts 'The `role` rake task is not recommended. If you are using Ruby' - puts 'role files, you can upload a single role with:' + puts "The `role` rake task is not recommended. If you are using Ruby" + puts "role files, you can upload a single role with:" puts - puts 'knife role from file rolename.rb' + puts "knife role from file rolename.rb" puts - puts 'If you are using JSON role files, you can upload a single role with' + puts "If you are using JSON role files, you can upload a single role with" puts - puts 'knife upload roles/rolename.json' + puts "knife upload roles/rolename.json" end desc "Upload all cookbooks" @@ -122,18 +122,18 @@ end desc "Test all cookbooks" task :test_cookbooks do puts deprecation_notice - puts 'The `test_cookbooks` rake task is no longer recommended. Previously' - puts 'it only performed a syntax check, and did no other kind of testing,' - puts 'and the Chef Community has a rich ecosystem of testing tools for' - puts 'various purposes:' + puts "The `test_cookbooks` rake task is no longer recommended. Previously" + puts "it only performed a syntax check, and did no other kind of testing," + puts "and the Chef Community has a rich ecosystem of testing tools for" + puts "various purposes:" puts - puts '- knife cookbook test will perform a syntax check, as this task did' - puts ' before.' - puts '- rubocop and foodcritic will perform lint checking for Ruby and' - puts ' Chef cookbook style according to community standards.' - puts '- ChefSpec will perform unit testing' - puts '- Test Kitchen will perform convergence and post-convergence' - puts ' testing on virtual machines.' + puts "- knife cookbook test will perform a syntax check, as this task did" + puts " before." + puts "- rubocop and foodcritic will perform lint checking for Ruby and" + puts " Chef cookbook style according to community standards." + puts "- ChefSpec will perform unit testing" + puts "- Test Kitchen will perform convergence and post-convergence" + puts " testing on virtual machines." end desc "Test a single cookbook" @@ -143,19 +143,19 @@ namespace :databag do desc "Upload a single databag" task :upload do puts deprecation_notice - puts 'The `data_bags:upload` task is not recommended. You should use' - puts 'the `knife upload` sub-command for uploading data bag items.' + puts "The `data_bags:upload` task is not recommended. You should use" + puts "the `knife upload` sub-command for uploading data bag items." puts - puts 'knife upload data_bags/bagname/itemname.json' + puts "knife upload data_bags/bagname/itemname.json" end desc "Upload all databags" task :upload_all do puts deprecation_notice - puts 'The `data_bags:upload_all` task is not recommended. You should' - puts 'use the `knife upload` sub-command for uploading data bag items.' + puts "The `data_bags:upload_all` task is not recommended. You should" + puts "use the `knife upload` sub-command for uploading data bag items." puts - puts 'knife upload data_bags/*' + puts "knife upload data_bags/*" end desc "Create a databag" |