Method: Watchful::Action#output_path_for
- Defined in:
- lib/watchful/action.rb
#output_path_for(source_path) ⇒ Object
given an input file, return the path of an output file
67 68 69 70 71 72 |
# File 'lib/watchful/action.rb', line 67 def output_path_for(source_path) unless self.input_file?(source_path) raise ArgumentError.new("#{source_path} is not an input file for action #{@name}") end return File.dirname(source_path) + '/' + File.basename(source_path, @in) + @out end |