Class: Filemerger::Poster
- Inherits:
-
Object
- Object
- Filemerger::Poster
- Defined in:
- lib/filemerger/poster.rb
Class Method Summary collapse
- .post_configuration_found ⇒ Object
- .post_configuration_not_found ⇒ Object
-
.post_configuration_search ⇒ Object
Configuration.
- .post_default_searching_path ⇒ Object
- .post_file_created(file_name) ⇒ Object
- .post_file_not_found(file) ⇒ Object
-
.post_greeting ⇒ Object
General.
- .post_merge_finished(errors_count) ⇒ Object
-
.post_mergefile_generated ⇒ Object
Generation.
- .post_no_group_found(dir) ⇒ Object
- .post_nothing_found ⇒ Object
-
.post_search_files(folder) ⇒ Object
Search.
Class Method Details
.post_configuration_found ⇒ Object
10 11 12 |
# File 'lib/filemerger/poster.rb', line 10 def self.post_configuration_found puts "🤘 Found Mergefile.yaml...".colorize(:green) end |
.post_configuration_not_found ⇒ Object
14 15 16 |
# File 'lib/filemerger/poster.rb', line 14 def self.post_configuration_not_found puts "👿 Mergefile.yaml not found!".colorize(:red) end |
.post_configuration_search ⇒ Object
Configuration
6 7 8 |
# File 'lib/filemerger/poster.rb', line 6 def self.post_configuration_search puts "🕵️♂️ Searching for Mergefile.yaml in #{Dir.pwd}".colorize(:blue) end |
.post_default_searching_path ⇒ Object
50 51 52 53 |
# File 'lib/filemerger/poster.rb', line 50 def self.post_default_searching_path puts "❗️ Searching folders not specified in Mergefile.".colorize(:yellow) puts "🕵️♂️ Searching for files in #{Dir.pwd}".colorize(:blue) end |
.post_file_created(file_name) ⇒ Object
23 24 25 |
# File 'lib/filemerger/poster.rb', line 23 def self.post_file_created(file_name) puts "❇️ File #{file_name} created" end |
.post_file_not_found(file) ⇒ Object
31 32 33 |
# File 'lib/filemerger/poster.rb', line 31 def self.post_file_not_found(file) puts "❗️ Couldn't find file #{file}".colorize(:red) end |
.post_greeting ⇒ Object
General
19 20 21 |
# File 'lib/filemerger/poster.rb', line 19 def self.post_greeting puts "====================== MERGER 👨💻 ======================".colorize(:green) end |
.post_merge_finished(errors_count) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/filemerger/poster.rb', line 35 def self.post_merge_finished(errors_count) if errors_count == 0 puts "✅ The merge has been successfuly completed.".colorize(:green) else puts "⚠️ The merge has been completed with #{errors_count} errors".colorize(:yellow) puts " Please see the log above.".colorize(:yellow) end end |
.post_mergefile_generated ⇒ Object
Generation
61 62 63 |
# File 'lib/filemerger/poster.rb', line 61 def self.post_mergefile_generated puts "💁♂️ Mergefile generated!".colorize(:green) end |
.post_no_group_found(dir) ⇒ Object
55 56 57 |
# File 'lib/filemerger/poster.rb', line 55 def self.post_no_group_found(dir) puts "❌ Couldn't find group for #{dir}".colorize(:red) end |
.post_nothing_found ⇒ Object
27 28 29 |
# File 'lib/filemerger/poster.rb', line 27 def self.post_nothing_found puts "0️⃣ No files matching specified masks found.".colorize(:blue) end |
.post_search_files(folder) ⇒ Object
Search
46 47 48 |
# File 'lib/filemerger/poster.rb', line 46 def self.post_search_files(folder) puts "🕵️♂️ Searching for files in #{folder}".colorize(:blue) end |