Class: Suppository::Release

Inherits:
Object
  • Object
show all
Defined in:
lib/suppository/release.rb

Instance Method Summary collapse

Constructor Details

#initialize(repo_path, dist, unsigned = false) ⇒ Release

Returns a new instance of Release.



7
8
9
10
11
12
# File 'lib/suppository/release.rb', line 7

def initialize(repo_path, dist, unsigned = false)
  @dist = dist
  @unsigned = unsigned
  @dist_path = "#{repo_path}/dists/#{dist}"
  @release_file = "#{@dist_path}/Release"
end

Instance Method Details

#createObject



14
15
16
17
# File 'lib/suppository/release.rb', line 14

def create
  write_file
  sign unless @unsigned
end