class Rocketwheel::Command::Manifest
Constants
- S3Config
- TransloaditConfig
Public Class Methods
from_file(path)
click to toggle source
# File lib/rocketwheel/command/manifest.rb, line 10 def self.from_file(path) new(YAML.load(File.open(path))) end
Public Instance Methods
meta()
click to toggle source
# File lib/rocketwheel/command/manifest.rb, line 37 def meta @meta ||= self.fetch('meta', Hash.new) end
player_options_480()
click to toggle source
# File lib/rocketwheel/command/manifest.rb, line 29 def player_options_480 @player_options_480 ||= self.fetch('player-480', Hash.new) end
player_options_720()
click to toggle source
# File lib/rocketwheel/command/manifest.rb, line 33 def player_options_720 @player_options_720 ||= self.fetch('player-720', Hash.new) end
playlist()
click to toggle source
# File lib/rocketwheel/command/manifest.rb, line 25 def playlist @playlist = self.fetch('playlist', []) end
s3()
click to toggle source
# File lib/rocketwheel/command/manifest.rb, line 18 def s3 @s3 ||= begin config = self.fetch('s3', Hash.new) S3Config.new(config['key'], config['secret'], config['bucket'], config['path'].to_s) end end
transloadit()
click to toggle source
# File lib/rocketwheel/command/manifest.rb, line 41 def transloadit @transloadit ||= begin config = self.fetch('transloadit', Hash.new) TransloaditConfig.new(config['key'], config['secret'], config['steps']) end end
version()
click to toggle source
# File lib/rocketwheel/command/manifest.rb, line 14 def version @version ||= self.fetch('version', Player.latest_version) end