class RBT::Action::Cookbooks::ExpandedCookbook
Public Class Methods
[](i = ARGV)
click to toggle source
new( i = ARGV, run_already = true ) { || ... }
click to toggle source
#¶ ↑
initialize¶ ↑
#¶ ↑
# File lib/rbt/actions/individual_actions/cookbooks/expanded_cookbook/expanded_cookbook.rb, line 32 def initialize( i = ARGV, run_already = true, &block ) reset set_commandline_arguments(i) case run_already # ======================================================================= # # === :do_not_run_yet # ======================================================================= # when :do_not_run_yet run_already = false end # ======================================================================= # # === Handle blocks given to this class next # ======================================================================= # if block_given? _yielded = yield end run if run_already end
Public Instance Methods
dataset?()
click to toggle source
program_path?()
click to toggle source
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/rbt/actions/individual_actions/cookbooks/expanded_cookbook/expanded_cookbook.rb, line 80 def run # ======================================================================= # # === :dataset # # We load the dataset from an already existing .yml file next. Naturally # this will only work if the .yml file exists, and has the desired # dataset, as-is. # ======================================================================= # @internal_hash[:dataset] = load_dataset_from_this_expanded_cookbook(first_argument?) end