class Codelog::Output::ReleaseFile
Public Class Methods
new(file_path)
click to toggle source
# File lib/codelog/output/release_file.rb, line 4 def initialize(file_path) @file_path = file_path end
print(content, file_path)
click to toggle source
# File lib/codelog/output/release_file.rb, line 8 def self.print(content, file_path) new(file_path).print(content) end
Public Instance Methods
print(content)
click to toggle source
# File lib/codelog/output/release_file.rb, line 12 def print(content) Dir.chdir Dir.pwd do File.open(@file_path, 'a') do |line| line.puts content end end end