Class: Glitter::Release::Sparkle

Inherits:
Base
  • Object
show all
Defined in:
lib/glitter/release.rb

Overview

A release consists of a binary asset, notes, a monotonically increasing version number, and lives inside of a channel.

Instance Attribute Summary collapse

Attributes inherited from Base

#channel, #logger, #version

Instance Method Summary collapse

Methods inherited from Base

#assets, #head, #initialize

Constructor Details

This class inherits a constructor from Glitter::Release::Base

Instance Attribute Details

#bundle_versionObject



88
89
90
# File 'lib/glitter/release.rb', line 88

def bundle_version
  @bundle_version || @version
end

#executableObject

Returns the value of attribute executable.



72
73
74
# File 'lib/glitter/release.rb', line 72

def executable
  @executable
end

#filenameObject

Returns the value of attribute filename.



72
73
74
# File 'lib/glitter/release.rb', line 72

def filename
  @filename
end

#notesObject

Returns the value of attribute notes.



72
73
74
# File 'lib/glitter/release.rb', line 72

def notes
  @notes
end

#published_atObject

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

#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