class RBT::ExtraInformation
Public Class Methods
[](i = ARGV)
click to toggle source
new( commandline_arguments = nil, run_already = true )
click to toggle source
Public Instance Methods
reset()
click to toggle source
run()
click to toggle source
#¶ ↑
run (run tag)¶ ↑
#¶ ↑
# File lib/rbt/utility_scripts/extra_information.rb, line 50 def run # ======================================================================= # # We will either instantiate a new cookbook, or we will use the dataset # from the expanded cookbook file. # ======================================================================= # _ = first_argument? if expanded_cookbook_file_exists_for?(_) # ===================================================================== # # This variant is faster, so it will be checked first. # ===================================================================== # file = path_to_this_expanded_cookbooks_dataset(_) use_this_key = 'extra_information'.to_sym dataset = YAML.load_file(file)[use_this_key] else dataset = action(:SanitizeCookbook, _) { :fast }.extra_information? end e dataset end