Module: Souls::Painter
- Defined in:
- lib/souls/app/utils/painter.rb
Class Method Summary collapse
- .create_file(text) ⇒ Object
- .delete_file(text) ⇒ Object
- .error(text) ⇒ Object
- .success(text) ⇒ Object
- .sync(text) ⇒ Object
- .update_file(text) ⇒ Object
- .warning(text) ⇒ Object
Class Method Details
.create_file(text) ⇒ Object
4 5 6 |
# File 'lib/souls/app/utils/painter.rb', line 4 def create_file(text) puts(Paint % ["✓ %{white_text}", :green, { white_text: ["Created file #{text}", :white] }]) end |
.delete_file(text) ⇒ Object
12 13 14 |
# File 'lib/souls/app/utils/painter.rb', line 12 def delete_file(text) puts(Paint % ["✓ %{white_text}", :red, { white_text: ["Deleted file #{text}", :white] }]) end |
.error(text) ⇒ Object
16 17 18 |
# File 'lib/souls/app/utils/painter.rb', line 16 def error(text) puts(Paint["🚨 #{text}", :red]) end |
.success(text) ⇒ Object
24 25 26 |
# File 'lib/souls/app/utils/painter.rb', line 24 def success(text) puts(Paint["🎉 #{text}", :green]) end |
.sync(text) ⇒ Object
28 29 30 |
# File 'lib/souls/app/utils/painter.rb', line 28 def sync(text) puts(Paint % ["✓ %{white_text}", :blue, { white_text: ["Synced #{text}", :white] }]) end |
.update_file(text) ⇒ Object
8 9 10 |
# File 'lib/souls/app/utils/painter.rb', line 8 def update_file(text) puts(Paint % ["✓ %{white_text}", :yellow, { white_text: ["Updated file #{text}", :white] }]) end |
.warning(text) ⇒ Object
20 21 22 |
# File 'lib/souls/app/utils/painter.rb', line 20 def warning(text) puts(Paint["🚨 #{text}", :yellow]) end |