Module: Outputable

Included in:
OpeningAct
Defined in:
lib/opening_act/output.rb

Overview

Module containing methods that only output text

Instance Method Summary collapse

Instance Method Details

#add_confirmationObject



28
29
30
31
# File 'lib/opening_act/output.rb', line 28

def add_confirmation
  puts "> Files will be added to existing directory '#{template.name}'."
  puts
end

#curtain_callObject



3
4
5
6
7
8
# File 'lib/opening_act/output.rb', line 3

def curtain_call
  puts
  puts '> The Opening Act has performed.'
  puts "> Your project folder '#{template.name}' was created."
  puts "> You're now ready for the main event."
end

#directory_exists_commandsObject



15
16
17
18
19
20
21
22
# File 'lib/opening_act/output.rb', line 15

def directory_exists_commands
  puts '> It appears another directory by this name already exists.'
  puts '> Do you wish to:'
  puts '    ADD to it'
  puts '    OVERWRITE it'
  puts '    RENAME your project'
  puts '    QUIT this program'
end

#leave_the_stageObject



10
11
12
13
# File 'lib/opening_act/output.rb', line 10

def leave_the_stage
  puts '> The Opening Act was forced to leave the stage early.'
  puts '> Your project folder was not created.'
end

#nested_git_confirmationObject



42
43
44
45
46
# File 'lib/opening_act/output.rb', line 42

def nested_git_confirmation
  puts '> A git project already exists in this directory.'
  puts '> Running OpeningAct will create a nested git.'
  puts '> Type CONTINUE if you wish to continue. Otherwise, press Enter.'
end

#overwrite_confirmationObject



33
34
35
36
# File 'lib/opening_act/output.rb', line 33

def overwrite_confirmation
  puts "> '#{template.name}' will be overwritten."
  puts
end

#rename_confirmationObject



38
39
40
# File 'lib/opening_act/output.rb', line 38

def rename_confirmation
  puts "> Your project has been renamed to '#{template.name}'."
end

#take_the_stageObject



24
25
26
# File 'lib/opening_act/output.rb', line 24

def take_the_stage
  puts '> The Opening Act has begun to perform. This may take a moment.'
end