class Producer::Core::Actions::FileAppend
Public Instance Methods
apply()
click to toggle source
# File lib/producer/core/actions/file_append.rb, line 14 def apply fs.file_write @path, combined_content end
combined_content()
click to toggle source
# File lib/producer/core/actions/file_append.rb, line 18 def combined_content original_content = fs.file_read @path return @content unless original_content original_content + @content end
name()
click to toggle source
# File lib/producer/core/actions/file_append.rb, line 10 def name 'file_append' end
setup()
click to toggle source
# File lib/producer/core/actions/file_append.rb, line 5 def setup check_arguments_size! 2 @path, @content = arguments end