Sha256: ec1d901a263e7d3d171060a12480bdc7dd6b55bafac7beac2cc7e235035d3b94

Contents?: true

Size: 241 Bytes

Versions: 2

Compression:

Stored size: 241 Bytes

Contents

module BuildMaster
class BuildNumberFile
  attr_reader :number
  
  def initialize(path)
    @path = path
    @number = @path.load().strip.to_i
  end
  
  def increase_build
    @number = @number + 1
    @path.save(@number)
  end
  
end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
BuildMaster-0.9.0 lib/buildmaster/build_number_file.rb
BuildMaster-0.9.1 lib/buildmaster/build_number_file.rb