Class: Octopress::Ink::StaticFileContent
- Inherits:
-
StaticFile
- Object
- StaticFile
- Octopress::Ink::StaticFileContent
- Defined in:
- lib/octopress-ink/jekyll/static_file_content.rb
Instance Method Summary collapse
Methods inherited from StaticFile
#destination, #initialize, #path
Constructor Details
This class inherits a constructor from Octopress::Ink::StaticFile
Instance Method Details
#write(dest) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/octopress-ink/jekyll/static_file_content.rb', line 4 def write(dest) dest_path = destination(dest) FileUtils.mkdir_p(File.dirname(dest_path)) File.open(dest_path, 'w') { |f| f.write(@source) } true end |