Class: Motion::Project::Sparkle::Appcast

Inherits:
Object
  • Object
show all
Defined in:
lib/motion/project/appcast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAppcast

Returns a new instance of Appcast.



98
99
100
101
102
103
104
105
106
# File 'lib/motion/project/appcast.rb', line 98

def initialize
  @feed_base_url = nil
  @feed_filename = 'releases.xml'
  @notes_base_url = nil
  @notes_filename = 'release_notes.html'
  @package_base_url = nil
  @package_filename = nil
  @base_url = nil
end

Instance Attribute Details

#base_urlObject

Returns the value of attribute base_url.



90
91
92
# File 'lib/motion/project/appcast.rb', line 90

def base_url
  @base_url
end

#feed_base_urlObject

Returns the value of attribute feed_base_url.



90
91
92
# File 'lib/motion/project/appcast.rb', line 90

def feed_base_url
  @feed_base_url
end

#feed_filenameObject

Returns the value of attribute feed_filename.



90
91
92
# File 'lib/motion/project/appcast.rb', line 90

def feed_filename
  @feed_filename
end

#notes_base_urlObject

Returns the value of attribute notes_base_url.



90
91
92
# File 'lib/motion/project/appcast.rb', line 90

def notes_base_url
  @notes_base_url
end

#notes_filenameObject

Returns the value of attribute notes_filename.



90
91
92
# File 'lib/motion/project/appcast.rb', line 90

def notes_filename
  @notes_filename
end

#package_base_urlObject

Returns the value of attribute package_base_url.



90
91
92
# File 'lib/motion/project/appcast.rb', line 90

def package_base_url
  @package_base_url
end

#package_filenameObject

Returns the value of attribute package_filename.



90
91
92
# File 'lib/motion/project/appcast.rb', line 90

def package_filename
  @package_filename
end

Instance Method Details

#feed_urlObject



108
109
110
# File 'lib/motion/project/appcast.rb', line 108

def feed_url
  "#{feed_base_url || base_url}/#{feed_filename}"
end

#notes_urlObject



112
113
114
# File 'lib/motion/project/appcast.rb', line 112

def notes_url
  "#{notes_base_url || base_url}/#{notes_filename}"
end

#package_urlObject



116
117
118
# File 'lib/motion/project/appcast.rb', line 116

def package_url
  "#{package_base_url || base_url}/#{package_filename}"
end