Skip to content

Instantly share code, notes, and snippets.

@ranjib
Created March 5, 2013 09:36
Show Gist options
  • Save ranjib/5089081 to your computer and use it in GitHub Desktop.
Save ranjib/5089081 to your computer and use it in GitHub Desktop.
ruby_block "some command" do
block do
c = Mixlib::Shelout.new("ls -l")
c.run_command
c.stdout # do something exciting with c.stdout
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment