class MultimediaParadise::TheSimpsons

Public Class Methods

[](i = '') click to toggle source
#

MultimediaParadise::TheSimpsons[]

#
# File lib/multimedia_paradise/video/the_simpsons/the_simpsons.rb, line 74
def self.[](i = '')
  new(i)
end
new( commandline_arguments = nil, run_already = true ) click to toggle source
#

initialize

#
# File lib/multimedia_paradise/video/the_simpsons/the_simpsons.rb, line 26
def initialize(
    commandline_arguments = nil,
    run_already           = true
  )
  reset
  set_commandline_arguments(
    commandline_arguments
  )
  run if run_already
end

Public Instance Methods

obtain_all_simpsons_episodes() click to toggle source
#

obtain_all_simpsons_episodes

#
# File lib/multimedia_paradise/video/the_simpsons/the_simpsons.rb, line 47
def obtain_all_simpsons_episodes
  from = '/home/x/video/Cartoons/Simpson**/**'
  @all_simpsons_episodes = Dir[from].select {|entry|
    is_a_video_file?(entry)
  }.sort
end
reset() click to toggle source
#

reset (reset tag)

#
Calls superclass method MultimediaParadise::Base#reset
# File lib/multimedia_paradise/video/the_simpsons/the_simpsons.rb, line 40
def reset
  super()
end
run() click to toggle source
#

run (run tag)

#
# File lib/multimedia_paradise/video/the_simpsons/the_simpsons.rb, line 66
def run
  obtain_all_simpsons_episodes
  store_the_simpsons_episodes
end
store_the_simpsons_episodes() click to toggle source
#

store_the_simpsons_episodes

#
# File lib/multimedia_paradise/video/the_simpsons/the_simpsons.rb, line 57
def store_the_simpsons_episodes
  into = '/home/x/video/Cartoons/all_simpsons_episodes.yml'
  e "#{rev}Storing into #{sfile(into)}"
  write_what_into(YAML.dump(@all_simpsons_episodes), into)
end