Rake
This file contains 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
# rake a:b[xx,yy] | |
desc "description place" | |
namespace :a do | |
task :b, :x, :y do |t, args| | |
args[:x] | |
args[:y] | |
end | |
end | |
# rake c | |
task :c do | |
Rake.application.invoke_task("a:b[xx,yy]") | |
end |
Exec shell command
- use back-quote such as `ls`
- return string from stdout
- access Process object with $? such as $?.success
- (not related to Ruby) `command 2>/dev/null` get rid of stderr
- string.chomp to remove new line in end of string
RSpec a lot of things on https://www.relishapp.com/rspec
No comments:
Post a Comment