Guest User

Untitled

a guest
Apr 25th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. class App < Thor
  2. map "-L" => :list
  3.  
  4. desc "install APP_NAME", "install one of the available apps"
  5. method_options :force => :boolean, :alias => :string
  6. def install(name)
  7. user_alias = options[:alias]
  8. if options.force?
  9. say "Forced"
  10. end
  11. say user_alias
  12. end
  13.  
  14. desc "list [SEARCH]", "list all of the available apps, limited by SEARCH"
  15. def list(search="")
  16. say "List"
  17. end
  18. end
Add Comment
Please, Sign In to add comment