Class: Munola::Installer::Report

Inherits:
Struct
  • Object
show all
Defined in:
lib/munola/installer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#boundObject

Returns the value of attribute bound

Returns:

  • (Object)

    the current value of bound



9
10
11
# File 'lib/munola/installer.rb', line 9

def bound
  @bound
end

#commentedObject

Returns the value of attribute commented

Returns:

  • (Object)

    the current value of commented



9
10
11
# File 'lib/munola/installer.rb', line 9

def commented
  @commented
end

#notesObject

Returns the value of attribute notes

Returns:

  • (Object)

    the current value of notes



9
10
11
# File 'lib/munola/installer.rb', line 9

def notes
  @notes
end

#writtenObject

Returns the value of attribute written

Returns:

  • (Object)

    the current value of written



9
10
11
# File 'lib/munola/installer.rb', line 9

def written
  @written
end

Instance Method Details

#linesObject



10
11
12
13
14
15
# File 'lib/munola/installer.rb', line 10

def lines
  out = written.map { |path| "wrote #{path}" }
  out << "bound #{bound.join(', ')}" unless bound.empty?
  out << "left commented, bind when the directories exist: #{commented.join(', ')}" unless commented.empty?
  out + notes
end