Class: Texy::CLI

Inherits:
Thor
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/texy.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#repositoryObject (readonly)

Returns the value of attribute repository.



20
21
22
# File 'lib/texy.rb', line 20

def repository
  @repository
end

Class Method Details

.destination_rootObject



26
27
28
# File 'lib/texy.rb', line 26

def self.destination_root
  TOP_LEVEL_DIRECTORY
end

.source_rootObject



22
23
24
# File 'lib/texy.rb', line 22

def self.source_root
  "#{TOP_LEVEL_DIRECTORY}/.templates"
end

Instance Method Details

#new_release_notesObject



44
45
46
47
48
49
50
51
52
53
54
# File 'lib/texy.rb', line 44

def new_release_notes
  @repository = Documents::ReleaseNotes.repository
  @object = Documents::ReleaseNotes.new

  set_up_environment

  populate_code(object: @object)
rescue SystemExit, Interrupt
  say "Exiting"
  exit
end

#new_sowObject



31
32
33
34
35
36
37
38
39
40
41
# File 'lib/texy.rb', line 31

def new_sow
  @repository = Documents::StatementOfWork.repository
  @object = Documents::StatementOfWork.new

  set_up_environment

  populate_code(object: @object)
rescue SystemExit, Interrupt
  say "Exiting"
  exit
end