Class: Freyia::Base
Constant Summary
Constants included from Automations
Constants included from Shell
Shell::SHELL_DELEGATED_METHODS
Instance Method Summary collapse
-
#initialize(source:, dest:) ⇒ Base
constructor
A new instance of Base.
Methods included from Setup
Methods included from Automations
#append_to_file, #apply, #chmod, #comment_lines, #copy_file, #create_file, #create_link, #destination_root, #destination_root=, #directory, #empty_directory, escape_globs, #find_in_source_paths, #get, #gsub_file, #gsub_file!, #in_root, #inject_into_class, #inject_into_module, #insert_into_file, #insert_into_file!, #inside, #link_file, #prepend_to_file, #relative_to_original_destination_root, #remove_file, #run, #template, #uncomment_lines
Methods included from Shell
Constructor Details
#initialize(source:, dest:) ⇒ Base
Returns a new instance of Base.
60 61 62 63 |
# File 'lib/freyia.rb', line 60 def initialize(source:, dest:) self.source_paths = Array(source).map { File.(_1, Dir.pwd) } self.destination_root = File.(dest, Dir.pwd) end |