class Rocketwheel::Command::CLI::Encode::Task

Public Instance Methods

download() click to toggle source
# File lib/rocketwheel/command/cli/encode.rb, line 40
def download
  encoder.store(destination) do |result|
    say_status :downloading, result['name']
  end
end
encode() click to toggle source
# File lib/rocketwheel/command/cli/encode.rb, line 28
def encode
  files.each do |file|
    say_status :encoding, File.basename(file)
  end
  @encoder = Rocketwheel::Command::Encoder.new(manifest)
  encoder.encode(files)
end
wait() click to toggle source
# File lib/rocketwheel/command/cli/encode.rb, line 36
def wait
  until encoder.encoded? do sleep 2; end
end

Private Instance Methods

encoder() click to toggle source
# File lib/rocketwheel/command/cli/encode.rb, line 48
def encoder
  @encoder
end