Class: Glitter::Release::Sparkle
Overview
A release consists of a binary asset, notes, a monotonically increasing version number, and lives inside of a channel.
Instance Attribute Summary collapse
- #bundle_version ⇒ Object
-
#executable ⇒ Object
Returns the value of attribute executable.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#minimum_system_version ⇒ Object
writeonly
Sets the attribute minimum_system_version.
-
#notes ⇒ Object
Returns the value of attribute notes.
-
#published_at ⇒ Object
Yeah, lets publish this shiz NOW.
Attributes inherited from Base
Instance Method Summary collapse
- #minimum_version_attribute ⇒ Object
-
#push(*args) ⇒ Object
Generate assets and push.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Glitter::Release::Base
Instance Attribute Details
#bundle_version ⇒ Object
88 89 90 |
# File 'lib/glitter/release.rb', line 88 def bundle_version @bundle_version || @version end |
#executable ⇒ Object
Returns the value of attribute executable.
72 73 74 |
# File 'lib/glitter/release.rb', line 72 def executable @executable end |
#filename ⇒ Object
Returns the value of attribute filename.
72 73 74 |
# File 'lib/glitter/release.rb', line 72 def filename @filename end |
#minimum_system_version=(value) ⇒ Object (writeonly)
Sets the attribute minimum_system_version
73 74 75 |
# File 'lib/glitter/release.rb', line 73 def minimum_system_version=(value) @minimum_system_version = value end |
#notes ⇒ Object
Returns the value of attribute notes.
72 73 74 |
# File 'lib/glitter/release.rb', line 72 def notes @notes end |
#published_at ⇒ Object
Yeah, lets publish this shiz NOW.
76 77 78 |
# File 'lib/glitter/release.rb', line 76 def published_at @published_at ||= Time.now end |
Instance Method Details
#minimum_version_attribute ⇒ Object
92 93 94 95 96 |
# File 'lib/glitter/release.rb', line 92 def minimum_version_attribute unless @minimum_system_version.nil? "<sparkle:minimumSystemVersion>#{@minimum_system_version}</sparkle:minimumSystemVersion>" end end |
#push(*args) ⇒ Object
Generate assets and push
81 82 83 84 85 86 |
# File 'lib/glitter/release.rb', line 81 def push(*args) notes_asset appcast_asset executable_asset super(*args) end |