Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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