Module: View
- Defined in:
- lib/codefusion/view.rb
Class Method Summary collapse
- .added_message(file_name, url) ⇒ Object
- .display_message(message) ⇒ Object
- .error_message ⇒ Object
- .exit_message ⇒ Object
- .help_info ⇒ Object
- .listen_message(file_name, url) ⇒ Object
- .modified_message(file_name, url) ⇒ Object
- .name_changed_message(file_name, url) ⇒ Object
- .removed_message(file_name, url) ⇒ Object
- .wrong_filetype_message(file) ⇒ Object
Class Method Details
.added_message(file_name, url) ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'lib/codefusion/view.rb', line 33 def self.(file_name, url) puts <<-EOM new: #{file_name} view: #{url} stop: 'ctrl + c' EOM end |
.display_message(message) ⇒ Object
2 3 4 |
# File 'lib/codefusion/view.rb', line 2 def self.() puts " #{}" end |
.error_message ⇒ Object
63 64 65 66 67 68 |
# File 'lib/codefusion/view.rb', line 63 def self. puts <<-EOM Something went wrong with the connection to your file. Please exit codefusion and restart your session. EOM end |
.exit_message ⇒ Object
77 78 79 80 81 82 83 |
# File 'lib/codefusion/view.rb', line 77 def self. puts <<-EOM Thanks for using codefusion! EOM end |
.help_info ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/codefusion/view.rb', line 51 def self.help_info puts <<-EOM To use codefusion: 1. type 'fusion <path_name>' 2. ensure path is valid 3. if path is valid, codefusion will start watching the file or directory for updates and provide a URL to your classroom 4. to close, press 'ctrl + c' EOM end |
.listen_message(file_name, url) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/codefusion/view.rb', line 6 def self.(file_name, url) puts <<-EOM listening to: #{file_name} view at: #{url} stop: 'ctrl + c' EOM end |
.modified_message(file_name, url) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/codefusion/view.rb', line 15 def self.(file_name, url) puts <<-EOM update: #{file_name} view: #{url} stop: 'ctrl + c' EOM end |
.name_changed_message(file_name, url) ⇒ Object
24 25 26 27 28 29 30 31 |
# File 'lib/codefusion/view.rb', line 24 def self.(file_name, url) puts <<-EOM name change: #{file_name} view: #{url} stop: 'ctrl + c' EOM end |
.removed_message(file_name, url) ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/codefusion/view.rb', line 42 def self.(file_name, url) puts <<-EOM deleted: #{file_name} view: #{url} stop: 'ctrl + c' EOM end |
.wrong_filetype_message(file) ⇒ Object
70 71 72 73 74 75 |
# File 'lib/codefusion/view.rb', line 70 def self.(file) puts <<-EOM The '#{file}' file type cannot be watched. EOM end |