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
-
#appcast_filename ⇒ Object
Returns the value of attribute appcast_filename.
- #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
#appcast_filename ⇒ Object
Returns the value of attribute appcast_filename.
73 74 75 |
# File 'lib/glitter/release.rb', line 73 def appcast_filename @appcast_filename end |
#bundle_version ⇒ Object
89 90 91 |
# File 'lib/glitter/release.rb', line 89 def bundle_version @bundle_version || @version end |
#executable ⇒ Object
Returns the value of attribute executable.
73 74 75 |
# File 'lib/glitter/release.rb', line 73 def executable @executable end |
#filename ⇒ Object
Returns the value of attribute filename.
73 74 75 |
# File 'lib/glitter/release.rb', line 73 def filename @filename end |
#minimum_system_version=(value) ⇒ Object (writeonly)
Sets the attribute minimum_system_version
74 75 76 |
# File 'lib/glitter/release.rb', line 74 def minimum_system_version=(value) @minimum_system_version = value end |
#notes ⇒ Object
Returns the value of attribute notes.
73 74 75 |
# File 'lib/glitter/release.rb', line 73 def notes @notes end |
#published_at ⇒ Object
Yeah, lets publish this shiz NOW.
77 78 79 |
# File 'lib/glitter/release.rb', line 77 def published_at @published_at ||= Time.now end |
Instance Method Details
#minimum_version_attribute ⇒ Object
93 94 95 96 97 |
# File 'lib/glitter/release.rb', line 93 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
82 83 84 85 86 87 |
# File 'lib/glitter/release.rb', line 82 def push(*args) notes_asset appcast_asset executable_asset super(*args) end |