Skip to content

Instantly share code, notes, and snippets.

@Sauraus Sauraus/sample
Created Oct 4, 2016

Embed
What would you like to do?
get command output back to recipe var
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
You can’t perform that action at this time.