class RBT::Chainer
Public Class Methods
[](i = ARGV)
click to toggle source
Public Instance Methods
dataset?()
click to toggle source
is_this_program_included?(i = first_argument?)
click to toggle source
notify_the_user_that_the_program_is_not_included(i)
click to toggle source
reset()
click to toggle source
#¶ ↑
reset (reset tag)¶ ↑
#¶ ↑
Calls superclass method
RBT::Base#reset
# File lib/rbt/utility_scripts/chainer.rb, line 48 def reset super() infer_the_namespace # ======================================================================= # # === @dataset # ======================================================================= # @dataset = YAML.load_file(RBT.file_cookbook_chained_programs) end
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/chainer.rb, line 75 def run _ = first_argument?.to_s.downcase.delete('-') if is_this_program_included? _ require 'rbt/requires/require_the_installer_class.rb' # ===================================================================== # # In this case we must select the proper key. # ===================================================================== # proper_hash = dataset?.select {|key, inner_array| key if inner_array.include? _ } selected_programs = proper_hash.values.flatten selected_programs.each {|this_program| RBT::Installer.new(this_program) } else notify_the_user_that_the_program_is_not_included(_) end end