class Glue

Public Class Methods

new(url) click to toggle source
# File lib/glued/glue.rb, line 5
def initialize(url)
  raise "Invalid manifest url '#{url}' (it should end with .f4m)" unless url.to_s =~ /\.f4m$/ #Only by convention

  xml = Curl::Easy.perform(url).body
  manifest = F4M.new(url, xml)
  bootstrap = Bootstrap.new(manifest.bootstrap_info)
  grabber = Grabber.new(manifest, bootstrap)

  puts "\rComplete                                                                "
end