Class: Rocketwheel::Command::CLI::Encode::Task

Inherits:
Thor::Group
  • Object
show all
Defined in:
lib/rocketwheel/command/cli/encode.rb

Instance Method Summary collapse

Instance Method Details

#downloadObject



40
41
42
43
44
# File 'lib/rocketwheel/command/cli/encode.rb', line 40

def download
  encoder.store(destination) do |result|
    say_status :downloading, result['name']
  end
end

#encodeObject



28
29
30
31
32
33
34
# 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

#waitObject



36
37
38
# File 'lib/rocketwheel/command/cli/encode.rb', line 36

def wait
  until encoder.encoded? do sleep 2; end
end