Class: Glitter::Channel
- Inherits:
-
Object
- Object
- Glitter::Channel
- Defined in:
- lib/glitter/channel.rb
Overview
A Channel is where multiple releases are pushed and incremented monotonically. Sparkle enabled native applications should be pointed at the head of a channel.
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize(name, server) ⇒ Channel
constructor
A new instance of Channel.
- #release(&block) ⇒ Object
- #versions ⇒ Object
Constructor Details
#initialize(name, server) ⇒ Channel
Returns a new instance of Channel.
7 8 9 |
# File 'lib/glitter/channel.rb', line 7 def initialize(name, server) @name, @server = name, server end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/glitter/channel.rb', line 5 def name @name end |
#server ⇒ Object (readonly)
Returns the value of attribute server.
5 6 7 |
# File 'lib/glitter/channel.rb', line 5 def server @server end |
Instance Method Details
#release(&block) ⇒ Object
11 12 13 |
# File 'lib/glitter/channel.rb', line 11 def release(&block) Release.new(self, &block) end |
#versions ⇒ Object
15 16 17 |
# File 'lib/glitter/channel.rb', line 15 def versions server.channel_versions[name] end |