Class: Rocketwheel::Command::Manifest
- Inherits:
-
Thor::CoreExt::HashWithIndifferentAccess
- Object
- Thor::CoreExt::HashWithIndifferentAccess
- Rocketwheel::Command::Manifest
show all
- Defined in:
- lib/rocketwheel/command/manifest.rb
Defined Under Namespace
Classes: S3Config, TransloaditConfig
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.from_file(path) ⇒ Object
10
11
12
|
# File 'lib/rocketwheel/command/manifest.rb', line 10
def self.from_file(path)
new(YAML.load(File.open(path)))
end
|
Instance Method Details
37
38
39
|
# File 'lib/rocketwheel/command/manifest.rb', line 37
def meta
@meta ||= self.fetch('meta', Hash.new)
end
|
#player_options_480 ⇒ Object
29
30
31
|
# 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 ⇒ Object
33
34
35
|
# File 'lib/rocketwheel/command/manifest.rb', line 33
def player_options_720
@player_options_720 ||= self.fetch('player-720', Hash.new)
end
|
#playlist ⇒ Object
25
26
27
|
# File 'lib/rocketwheel/command/manifest.rb', line 25
def playlist
@playlist = self.fetch('playlist', [])
end
|
#s3 ⇒ Object
18
19
20
21
22
23
|
# 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 ⇒ Object
41
42
43
44
45
46
|
# 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 ⇒ Object
14
15
16
|
# File 'lib/rocketwheel/command/manifest.rb', line 14
def version
@version ||= self.fetch('version', Player.latest_version)
end
|