Skip to content

Instantly share code, notes, and snippets.

@coderforhire
Created April 26, 2012 20:43
Show Gist options
  • Save coderforhire/2503000 to your computer and use it in GitHub Desktop.
Save coderforhire/2503000 to your computer and use it in GitHub Desktop.
cat cookbooks/reboot/recipes/default.rb
#
# Cookbook Name:: reboot
# Recipe:: default
#
# Copyright 2012, YOUR_COMPANY_NAME
#
# All rights reserved - Do Not Redistribute
#
bash "/sbin/reboot" do
"/sbin/reboot"
end
TDERR: /tmp/chef-script20120426-4457-ofyymb-0: line 1: nil: command not found
---- End output of "bash" "/tmp/chef-script20120426-4457-ofyymb-0" ----
Ran "bash" "/tmp/chef-script20120426-4457-ofyymb-0" returned 127
remote@m2146:~$ cat /tmp/chef-script20120426-4457-ofyymb-0
cat: /tmp/chef-script20120426-4457-ofyymb-0: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment