Skip to content

Instantly share code, notes, and snippets.

@newtriks
Created June 9, 2011 12:09
Show Gist options
  • Select an option

  • Save newtriks/1016612 to your computer and use it in GitHub Desktop.

Select an option

Save newtriks/1016612 to your computer and use it in GitHub Desktop.
Run command with rake test
task :default => :list do
%x{touch readme.txt}
end
task :list do
@dump=%x{ls}
puts "Directory contents: #{@dump}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment