Class: StickCommand
- Inherits:
-
Liza::Command
- Object
- Liza::Command
- StickCommand
- Defined in:
- app/dev/commands/stick_command.rb
Class Method Summary collapse
-
.call(args) ⇒ Object
lizarb stick.
-
.systems(args) ⇒ Object
lizarb stick:systems.
Class Method Details
.call(args) ⇒ Object
lizarb stick
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'app/dev/commands/stick_command.rb', line 5 def self.call args log "args = #{args.inspect}" log stick :white, :ruby, :b, "I just think Ruby is the Best for coding!".center(97) puts ColorShell.colors.each do |k, v| log [ stick(v, :darkest_black, :b, "#{k} ".rjust(20)), stick(k, :darkest_black, :b, "[#{v.map { _1.to_s.rjust(3) }.join(", ")}] "), stick(v, :darkest_black, :b, :i, "I just think"), stick(v, :darkest_black, " "), stick(v, :darkest_black, :b, :u, "Ruby is the"), stick(v, :darkest_black, " "), stick(v, :darkest_black, "Best for coding"), stick(v, :darkest_black, " "), stick(v, :darkest_black, :b, "#{k} ".ljust(20)), ] end puts ColorShell.colors.each do |k, v| log [ stick(v, :lightest_white, :b, "#{k} ".rjust(20)), stick(k, :lightest_white, :b, "[#{v.map { _1.to_s.rjust(3) }.join(", ")}] "), stick(v, :lightest_white, :b, :i, "I just think"), stick(v, :lightest_white, " "), stick(v, :lightest_white, :b, :u, "Ruby is the"), stick(v, :lightest_white, " "), stick(v, :lightest_white, "Best for coding"), stick(v, :lightest_white, " "), stick(v, :lightest_white, :b, "#{k} ".ljust(20)), ] end end |
.systems(args) ⇒ Object
lizarb stick:systems
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'app/dev/commands/stick_command.rb', line 46 def self.systems args log "args = #{args.inspect}" log stick :white, :ruby, :b, "I just think Ruby is the Best for coding!".center(97) puts App.systems.each do |k, v| log [ stick(v.color, :darkest_black, :b, "#{v} ".rjust(20)), stick(v.color, :darkest_black, :b, "[#{v.color.map { _1.to_s.rjust(3) }.join(", ")}] "), stick(v.color, :darkest_black, :b, :i, "I just think"), stick(v.color, :darkest_black, " "), stick(v.color, :darkest_black, :b, :u, "Ruby is the"), stick(v.color, :darkest_black, " "), stick(v.color, :darkest_black, "Best for coding"), stick(v.color, :darkest_black, " "), stick(v.color, :darkest_black, :b, "#{v} ".ljust(20)), ] end puts App.systems.each do |k, v| log [ stick(v.color, :b, "#{v} ".rjust(20)), stick(v.color, :b, "[#{v.color.map { _1.to_s.rjust(3) }.join(", ")}] "), stick(v.color, :b, :i, "I just think"), stick(v.color, " "), stick(v.color, :b, :u, "Ruby is the"), stick(v.color, " "), stick(v.color, "Best for coding"), stick(v.color, " "), stick(v.color, :b, "#{v} ".ljust(20)), ] end puts App.systems.each do |k, v| log [ stick(v.color, :lightest_white, :b, "#{v} ".rjust(20)), stick(v.color, :lightest_white, :b, "[#{v.color.map { _1.to_s.rjust(3) }.join(", ")}] "), stick(v.color, :lightest_white, :b, :i, "I just think"), stick(v.color, :lightest_white, " "), stick(v.color, :lightest_white, :b, :u, "Ruby is the"), stick(v.color, :lightest_white, " "), stick(v.color, :lightest_white, "Best for coding"), stick(v.color, :lightest_white, " "), stick(v.color, :lightest_white, :b, "#{v} ".ljust(20)), ] end end |