Class: Rocketwheel::Command::CLI::Encode::Task
- Inherits:
-
Thor::Group
- Object
- Thor::Group
- Rocketwheel::Command::CLI::Encode::Task
- Defined in:
- lib/rocketwheel/command/cli/encode.rb
Instance Method Summary collapse
Instance Method Details
#download ⇒ Object
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 |
#encode ⇒ Object
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 |
#wait ⇒ Object
36 37 38 |
# File 'lib/rocketwheel/command/cli/encode.rb', line 36 def wait until encoder.encoded? do sleep 2; end end |