class Rocketwheel::Command::CLI::Build

Public Class Methods

source_root() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 7
def self.source_root
  File.expand_path("./")
end

Public Instance Methods

build() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 20
def build
  directory source, destination
  say_status :downloading, 'demoplayer'
  player.download_and_unzip(File.join(destination, 'demoplayer'))
rescue Rocketwheel::Command::PlayerNotFound => e
  raise Thor::Error, "#{e.message} Run `rocket versions` to see a full list of available players."
end
meta() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 41
def meta
  manifest.meta
end
player_options_480() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 29
def player_options_480
  manifest.player_options_480
end
player_options_720() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 33
def player_options_720
  manifest.player_options_720
end
playlist() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 37
def playlist
  manifest.playlist
end

Private Instance Methods

destination() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 61
def destination
  options[:destination]
end
player() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 49
def player
  Rocketwheel::Command::Player.version(version)
end
source() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 57
def source
  options[:source]
end
version() click to toggle source
# File lib/rocketwheel/command/cli/build.rb, line 53
def version
  manifest.version
end