Created
September 15, 2016 16:42
-
-
Save cheeseplus/a6c09871891bc6b9813106c918085972 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
test.rb -l info | |
[2016-09-15T12:40:53-04:00] INFO: Run List is [] | |
[2016-09-15T12:40:53-04:00] INFO: Run List expands to [] | |
[2016-09-15T12:40:53-04:00] INFO: [:enable] | |
Recipe: (chef-apply cookbook)::(chef-apply recipe) | |
* ruby_block[config mount actions] action run[2016-09-15T12:40:53-04:00] INFO: Processing ruby_block[config mount actions] action run ((chef-apply cookbook)::(chef-apply recipe) line 3) | |
[2016-09-15T12:40:53-04:00] INFO: ruby_block[config mount actions] called | |
- execute the ruby block config mount actions | |
* log[test that actions was appended to] action write[2016-09-15T12:40:53-04:00] INFO: Processing log[test that actions was appended to] action write ((chef-apply cookbook)::(chef-apply recipe) line 9) | |
[2016-09-15T12:40:53-04:00] INFO: [:enable, :mount] |
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
node.run_state['NASActions'] = [:enable] | |
Chef::Log.info(node.run_state['NASActions']) | |
ruby_block 'config mount actions' do | |
block do | |
node.run_state['NASActions'] << :mount | |
end | |
end | |
log "test that actions was appended to" do | |
message lazy { node.run_state['NASActions'].to_s } | |
level :info | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment