Created
January 19, 2013 19:24
-
-
Save someara/4574538 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@localhost:~# shef -s | |
loading configuration: none (standalone shef session) | |
Session type: solo | |
Loading.[2013-01-19T19:22:31+00:00] INFO: Run List is [] | |
[2013-01-19T19:22:31+00:00] INFO: Run List expands to [] | |
done. | |
This is shef, the Chef shell. | |
Chef Version: 10.18.0 | |
http://www.opscode.com/chef | |
http://wiki.opscode.com/display/chef/Home | |
run `help' for help, `exit' or ^D to quit. | |
Ohai2u root@localhost! | |
chef > recipe | |
chef:recipe > | |
chef:recipe > | |
chef:recipe > execute "hi there 1" do | |
chef:recipe > command "echo hi there 1" | |
chef:recipe ?> not_if "test -f /bin/ls" | |
chef:recipe ?> end | |
[2013-01-19T19:22:56+00:00] WARN: Cloning resource attributes for execute[hi there 1] from prior resource (CHEF-3694) | |
[2013-01-19T19:22:56+00:00] WARN: From: (irb#1):3:in `irb_binding' | |
=> <execute[hi there 1] @name: "hi there 1" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :run] @action: "run" @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):3:in `irb_binding'" @elapsed_time: 0 @resource_name: :execute @command: "echo hi there 1" @backup: 5 @creates: nil @cwd: nil @environment: nil @group: nil @path: nil @returns: 0 @timeout: nil @user: nil @umask: nil @cookbook_name: nil @recipe_name: nil> | |
chef:recipe > | |
chef:recipe > execute "hi there 2" do | |
chef:recipe > command "echo hi there 2" | |
chef:recipe ?> not_if "test -f /bin/ls" | |
chef:recipe ?> end | |
[2013-01-19T19:23:18+00:00] WARN: Cloning resource attributes for execute[hi there 2] from prior resource (CHEF-3694) | |
[2013-01-19T19:23:18+00:00] WARN: From: (irb#1):8:in `irb_binding' | |
=> <execute[hi there 2] @name: "hi there 2" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :run] @action: "run" @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):8:in `irb_binding'" @elapsed_time: 0 @resource_name: :execute @command: "echo hi there 2" @backup: 5 @creates: nil @cwd: nil @environment: nil @group: nil @path: nil @returns: 0 @timeout: nil @user: nil @umask: nil @cookbook_name: nil @recipe_name: nil> | |
chef:recipe > | |
chef:recipe > | |
chef:recipe > resources | |
["execute[hi there 1]", "execute[hi there 2]"] | |
=> ["execute[hi there 1]", "execute[hi there 2]"] | |
chef:recipe > | |
chef:recipe > | |
chef:recipe > run_chef | |
[2013-01-19T19:23:31+00:00] INFO: Processing execute[hi there 1] action run ((irb#1) line 3) | |
[2013-01-19T19:23:31+00:00] DEBUG: Skipping execute[hi there 1] due to not_if command `test -f /bin/ls` | |
[2013-01-19T19:23:31+00:00] INFO: Processing execute[hi there 2] action run ((irb#1) line 8) | |
[2013-01-19T19:23:31+00:00] DEBUG: Skipping execute[hi there 2] due to not_if command `test -f /bin/ls` | |
=> true | |
chef:recipe > execute "hi there 1" | |
[2013-01-19T19:23:38+00:00] WARN: Cloning resource attributes for execute[hi there 1] from prior resource (CHEF-3694) | |
[2013-01-19T19:23:38+00:00] WARN: From: (irb#1):19:in `irb_binding' | |
=> <execute[hi there 1] @name: "hi there 1" @noop: nil @before: nil @params: {} @provider: nil @allowed_actions: [:nothing, :run] @action: "run" @updated: false @updated_by_last_action: false @supports: {} @ignore_failure: false @retries: 0 @retry_delay: 2 @source_line: "(irb#1):19:in `irb_binding'" @elapsed_time: 0.024406622 @resource_name: :execute @command: "echo hi there 1" @backup: 5 @creates: nil @cwd: nil @environment: nil @group: nil @path: nil @returns: 0 @timeout: nil @user: nil @umask: nil @cookbook_name: nil @recipe_name: nil> | |
chef:recipe > | |
chef:recipe > resources | |
["execute[hi there 1]", "execute[hi there 2]"] | |
=> ["execute[hi there 1]", "execute[hi there 2]"] | |
chef:recipe > | |
chef:recipe > run_chef | |
[2013-01-19T19:23:48+00:00] INFO: Processing execute[hi there 1] action run ((irb#1) line 3) | |
[2013-01-19T19:23:48+00:00] DEBUG: Skipping execute[hi there 1] due to not_if command `test -f /bin/ls` | |
[2013-01-19T19:23:48+00:00] INFO: Processing execute[hi there 2] action run ((irb#1) line 8) | |
[2013-01-19T19:23:48+00:00] DEBUG: Skipping execute[hi there 2] due to not_if command `test -f /bin/ls` | |
[2013-01-19T19:23:48+00:00] INFO: Processing execute[hi there 1] action run ((irb#1) line 19) | |
hi there 1 | |
[2013-01-19T19:23:48+00:00] INFO: execute[hi there 1] ran successfully | |
=> true | |
chef:recipe > |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment