Sha256: c44f6f5d2955706a1efb2f8d550c46b78c59c59841ad06a338005a38212c8073
Contents?: true
Size: 758 Bytes
Versions: 3
Compression:
Stored size: 758 Bytes
Contents
module ZencoderCLI::Command class Outputs < Base provides "outputs", { "outputs:progress" => "Show output progress" } class << self def progress(args, global_options, command_options) output = Zencoder::Output.progress(args.shift, :base_url => Zencoder.base_url(global_options[:environment])).process_for_cli.body rows = [] rows << ["State", output["state"].titleize] if output["state"] == "processing" rows << ["Event", output["current_event"].titleize] rows << ["Progress", output["progress"]] elsif output["state"] == "finished" rows << ["Progress", "100%"] end puts table([{ :value => "Output", :colspan => 2 }], *rows) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
zencoder-2.2.2 | lib/zencoder/cli/commands/outputs.rb |
zencoder-2.2.1 | lib/zencoder/cli/commands/outputs.rb |
zencoder-2.2.0 | lib/zencoder/cli/commands/outputs.rb |