class Antenna::Distributor::Local

Public Class Methods

new() click to toggle source
# File lib/antenna/distributor/local.rb, line 5
def initialize()
end

Public Instance Methods

distribute(data, filename, content_type) click to toggle source
# File lib/antenna/distributor/local.rb, line 12
def distribute(data, filename, content_type)
  puts "Distributing #{filename} ..."

  target = open(filename, 'w')
  target.write(data)
  target.close

  if @options[:url]
    URI.join(@options[:url], filename)
  else
    filename
  end
end
setup(ipa_file, options = {}) click to toggle source
# File lib/antenna/distributor/local.rb, line 8
def setup(ipa_file, options = {})
  @options = options
end