Class: Rrjj::Cmds
- Inherits:
-
Object
- Object
- Rrjj::Cmds
- Defined in:
- lib/rrjj/cmds.rb
Class Attribute Summary collapse
-
.all_shortcuts ⇒ Object
Returns the value of attribute all_shortcuts.
Class Method Summary collapse
- .all ⇒ Object
- .zeus(shortcut_name, bash) ⇒ Object
- .zrk(shortcut_name, bash) ⇒ Object
- .zro(shortcut_name, bash) ⇒ Object
Class Attribute Details
.all_shortcuts ⇒ Object
Returns the value of attribute all_shortcuts.
33 34 35 |
# File 'lib/rrjj/cmds.rb', line 33 def all_shortcuts @all_shortcuts end |
Class Method Details
.all ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/rrjj/cmds.rb', line 5 def all zeus('zro', 'ro') zeus('a', 'rails_navigate access') zeus('la', 'rails get_assets') zeus('lc', 'rails get_controllers') zeus('lmo', 'rails get_models') zeus('lm', 'rails get_migrations') zeus('lsc', 'rails get_scaffolds') zro('schema', 'check schema') zro('table', 'check table') zrk('routes', 'routes') all_shortcuts end |
.zeus(shortcut_name, bash) ⇒ Object
21 22 23 |
# File 'lib/rrjj/cmds.rb', line 21 def zeus(shortcut_name, bash) all_shortcuts << Cmd.new(shortcut_name, "zeus #{bash}") end |
.zrk(shortcut_name, bash) ⇒ Object
29 30 31 |
# File 'lib/rrjj/cmds.rb', line 29 def zrk(shortcut_name, bash) all_shortcuts << Cmd.new(shortcut_name, "zeus rake #{bash}") end |
.zro(shortcut_name, bash) ⇒ Object
25 26 27 |
# File 'lib/rrjj/cmds.rb', line 25 def zro(shortcut_name, bash) all_shortcuts << Cmd.new(shortcut_name, "zeus ro #{bash}") end |