Class: Suppository::Release
- Inherits:
-
Object
- Object
- Suppository::Release
- Defined in:
- lib/suppository/release.rb
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(repo_path, dist, unsigned = false) ⇒ Release
constructor
A new instance of Release.
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
#create ⇒ Object
14 15 16 17 |
# File 'lib/suppository/release.rb', line 14 def create write_file sign unless @unsigned end |