class RBT::Cookbooks::MergeCookbooks
Constants
- DEFAULT_LOCATION
#¶ ↑
DEFAULT_LOCATION
¶ ↑#¶ ↑
Public Class Methods
new( path_where_to_store = DEFAULT_LOCATION, be_verbose = true )
click to toggle source
#¶ ↑
initialize¶ ↑
#¶ ↑
Calls superclass method
RBT::LeanPrototype::new
# File lib/rbt/cookbooks/merge_cookbooks.rb, line 26 def initialize( path_where_to_store = DEFAULT_LOCATION, be_verbose = true ) super() reset set_full_path( path_where_to_store+ name_of_new_cookbook_file? # Get a default name for now. ) if be_verbose opne "We will store at #{sfancy(@full_path)}" end run end
Public Instance Methods
name_of_new_cookbook_file?()
click to toggle source
reset()
click to toggle source
#¶ ↑
reset¶ ↑
#¶ ↑
Calls superclass method
RBT::LeanPrototype#reset
# File lib/rbt/cookbooks/merge_cookbooks.rb, line 45 def reset super() infer_the_namespace # ======================================================================= # # === @array_merged # ======================================================================= # @array_merged = [] # ======================================================================= # # === @name_of_new_cookbook_file # ======================================================================= # @name_of_new_cookbook_file = 'merged_cookbook.yml' end
run()
click to toggle source
save_file()
click to toggle source