Class: Mapa
- Inherits:
-
Object
- Object
- Mapa
- Defined in:
- lib/mapa.rb
Defined Under Namespace
Classes: Utility
Instance Method Summary collapse
- #greeting ⇒ Object
-
#initialize(args) ⇒ Mapa
constructor
A new instance of Mapa.
Constructor Details
#initialize(args) ⇒ Mapa
Returns a new instance of Mapa.
3 4 5 6 7 8 9 |
# File 'lib/mapa.rb', line 3 def initialize(args) if args.compact.reject{|e|e.empty?}.empty? greeting else @utility = Utility.new(args) end end |
Instance Method Details
#greeting ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/mapa.rb', line 11 def greeting puts "\nThanks for using Mapa!\n\n" puts 'Available Commands' puts ' ginit Alias for "git init"' puts ' gad Alias for "git add ."' puts ' gst Alias for "git status"' puts ' gcm Alias for "git commit -m"' puts ' gbr Alias for "git branch"' puts ' gpl Alias for "git pull origin"' puts ' gph Alias for "git push origin"' puts ' gco Alias for "git checkout"' puts ' gcob Alias for "git checkout -b"' puts ' grh Alias for "git reset --hard"' puts ' gdif Alias for "git diff"' puts ' gfo Alias for "git fetch origin"' puts ' gbrd Delete git branches with name matching <pattern>' end |