Created
October 4, 2016 23:38
-
-
Save Sauraus/1960f986b3ce59aac6e42bede15bc2ad to your computer and use it in GitHub Desktop.
get command output back to recipe var
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
launchctl_list = '' | |
ruby_block 'Retrieve launchctl list' do | |
block do | |
Chef::Resource::RubyBlock.send(:include,Chef::Mixin::ShellOut) | |
launchctl_list = shell_out('launchctl list|awk \'{print $3}\'') | |
end | |
end | |
lazy launch_ctl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment