Module: Freyia::Setup

Includes:
Automations, Shell
Included in:
Base
Defined in:
lib/freyia.rb

Defined Under Namespace

Modules: ClassMethods

Constant Summary

Constants included from Automations

Automations::WARNINGS

Constants included from Shell

Freyia::Shell::SHELL_DELEGATED_METHODS

Class Method Summary collapse

Instance Method Summary collapse

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

Class Method Details

.included(klass) ⇒ Object



43
44
45
46
# File 'lib/freyia.rb', line 43

def self.included(klass)
  klass.attr_accessor :source_paths
  klass.extend ClassMethods
end

Instance Method Details

#optionsObject



52
53
54
# File 'lib/freyia.rb', line 52

def options
  @options ||= {}
end

#shellObject



48
49
50
# File 'lib/freyia.rb', line 48

def shell
  @shell ||= self.class.shell.new(base: self)
end