lib/abrizer/data.rb in abrizer-0.4.0 vs lib/abrizer/data.rb in abrizer-0.5.0
- old
+ new
@@ -5,24 +5,13 @@
include FilepathHelpers
include IdentifierHelpers
include InformationHelpers
include ReadAdaptations
- def initialize(filepath, output_directory, base_url)
- @filepath = filepath
- # This is kind of hacky, but if the @output_directory is set then we can
- # use that to look up the vp9_filepath
+ def initialize(output_directory, base_url)
@output_directory = output_directory
@base_url = base_url
-
- # This sets @filename in some cases and more importantly sets @adaptations
- # based on the filepath or identifier that's passed in.
read_adaptations
- end
-
- def find_adaptations
- finder = AdaptationFinder.new(@filename)
- @adaptations = finder.adaptations
end
def create
FileUtils.mkdir_p output_directory unless File.exist? output_directory
File.open(data_filepath, 'w') do |fh|