Permalink
Browse files

Substitute "cook" with "fix" in the fabric task usage messages

  • Loading branch information...
1 parent 17de512 commit 935ebba7488e10f33a8311e51230461ff3af4445 @tobami tobami committed Sep 22, 2011
Showing with 4 additions and 4 deletions.
  1. +1 −1 littlechef/chef.py
  2. +3 −3 littlechef/runner.py
View
@@ -263,7 +263,7 @@ def _add_search_patch():
node_work_path, cookbook_paths[0], 'chef_solo_search_lib', 'libraries')
with hide('running', 'stdout'):
sudo('mkdir -p {0}'.format(lib_path))
- # Create remote data bags patch
+ # Add search and environment patch to the node's cookbooks
for filename in ('search.rb', 'parser.rb', 'environment.rb'):
put(os.path.join(basedir, filename),
os.path.join(lib_path, filename), use_sudo=True)
View
@@ -108,7 +108,7 @@ def deploy_chef(gems="no", ask="yes", version="0.10",
distro_type=None, distro=None, stop_client='yes'):
"""Install chef-solo on a node"""
if not env.host_string:
- abort('no node specified\nUsage: cook node:MYNODE deploy_chef')
+ abort('no node specified\nUsage: fix node:MYNODE deploy_chef')
chef_versions = ["0.9", "0.10"]
if version not in chef_versions:
abort('Wrong Chef version specified. Valid versions are {0}'.format(
@@ -144,7 +144,7 @@ def recipe(recipe):
"""
# Check that a node has been selected
if not env.host_string:
- abort('no node specified\nUsage: cook node:MYNODE recipe:MYRECIPE')
+ abort('no node specified\nUsage: fix node:MYNODE recipe:MYRECIPE')
lib.print_header(
"Applying recipe '{0}' on node {1}".format(recipe, env.host_string))
@@ -161,7 +161,7 @@ def role(role):
"""
# Check that a node has been selected
if not env.host_string:
- abort('no node specified\nUsage: cook node:MYNODE role:MYROLE')
+ abort('no node specified\nUsage: fix node:MYNODE role:MYROLE')
lib.print_header(
"Applying role '{0}' to {1}".format(role, env.host_string))

0 comments on commit 935ebba

Please sign in to comment.