Class: Contextizer::Writer
- Inherits:
-
Object
- Object
- Contextizer::Writer
- Defined in:
- lib/contextizer/writer.rb
Class Method Summary collapse
Class Method Details
.call(content:, destination:) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/contextizer/writer.rb', line 7 def self.call(content:, destination:) path = Pathname.new(destination) puts "[Contextizer] Writer: Saving report to #{path}..." FileUtils.mkdir_p(path.dirname) File.write(path, content) puts "[Contextizer] Writer: Report saved successfully." end |