Class: Tug::NotesParser

Inherits:
Object
  • Object
show all
Defined in:
lib/tug/deployment/notes_parser.rb

Direct Known Subclasses

NotesFileParser

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(notes) ⇒ NotesParser

Returns a new instance of NotesParser.



16
17
18
# File 'lib/tug/deployment/notes_parser.rb', line 16

def initialize(notes)
  @notes = %Q|#{notes}|
end

Instance Attribute Details

#notesObject (readonly)

Returns the value of attribute notes.



4
5
6
# File 'lib/tug/deployment/notes_parser.rb', line 4

def notes
  @notes
end

Class Method Details

.notes_parser(notes) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/tug/deployment/notes_parser.rb', line 7

def notes_parser(notes)
  if File.file? notes
    Tug::NotesFileParser.new(notes)
  else
    Tug::NotesParser.new(notes)
  end
end