Class: Glitter::Channel

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/glitter/channel.rb', line 5

def name
  @name
end

#serverObject (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

#versionsObject



15
16
17
# File 'lib/glitter/channel.rb', line 15

def versions
  server.channel_versions[name]
end