Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Test < Thor
- include Thor::Actions
- def self.source_root
- File.dirname(__FILE__)
- end
- desc "example", "an example task"
- def gsub_file
- gsub_file 'README', /localprojectdirectory/, :green do |match|
- match << " no more. Use thor!"
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement