Sha256: 2ee0a114b9809fc51a3c1acc7b283912f74edfe025b2af09bfbeb7d251d6d81a

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

module Codelog
  module Output
    class ReleaseFile
      def initialize(file_path)
        @file_path = file_path
      end

      def self.print(content, file_path)
        new(file_path).print(content)
      end

      def print(content)
        Dir.chdir Dir.pwd do
          File.open(@file_path, 'a') do |line|
            line.puts content
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
codelog-0.8.0 lib/codelog/output/release_file.rb