Sha256: b6c029bee1411760ee9385a7929d016a343b0bc501d45d40972d334d5044e90f

Contents?: true

Size: 504 Bytes

Versions: 2

Compression:

Stored size: 504 Bytes

Contents

module Abrizer
  # It is usually better for a human to select a poster image, but we try to
  # select a temporary one.
  # Creating sprites leaves some images around so that is a prerequisite for
  # this step.
  # TODO: selection of a temporary poster image could be improved
  class TemporaryPoster

    include FilepathHelpers

    def initialize(output_dir)
      @output_directory = output_dir
    end

    def copy
      FileUtils.cp first_image_filepath, poster_image_filepath
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
abrizer-0.3.0 lib/abrizer/temporary_poster.rb
abrizer-0.2.0 lib/abrizer/temporary_poster.rb