Class: EditorWish
- Inherits:
-
Djinni::Wish
- Object
- Djinni::Wish
- EditorWish
- Defined in:
- lib/zoom/wish/editor_wish.rb
Instance Method Summary collapse
Instance Method Details
#aliases ⇒ Object
5 6 7 |
# File 'lib/zoom/wish/editor_wish.rb', line 5 def aliases return ["editor"] end |
#description ⇒ Object
9 10 11 |
# File 'lib/zoom/wish/editor_wish.rb', line 9 def description return "Configure editor" end |
#execute(args, djinni_env = {}) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/zoom/wish/editor_wish.rb', line 13 def execute(args, djinni_env = {}) if (args.include?(" ")) usage return end config = djinni_env["config"] if (ScoobyDoo.where_are_you(args)) config.editor(args) else puts "Editor not found: #{args}" end end |
#usage ⇒ Object
27 28 29 30 |
# File 'lib/zoom/wish/editor_wish.rb', line 27 def usage puts "#{aliases.join(", ")} <value>" puts " #{description}." end |