Class: Freyia::Base

Inherits:
Object
  • Object
show all
Includes:
Setup
Defined in:
lib/freyia.rb

Constant Summary

Constants included from Automations

Automations::WARNINGS

Constants included from Shell

Shell::SHELL_DELEGATED_METHODS

Instance Method Summary collapse

Methods included from Setup

included, #options, #shell

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

#with_padding

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.expand_path(_1, Dir.pwd) }
  self.destination_root = File.expand_path(dest, Dir.pwd)
end