Class: RemoveGlobalCommand
- Inherits:
-
Object
- Object
- RemoveGlobalCommand
- Defined in:
- lib/woodstove/packagecommands.rb
Instance Method Summary collapse
Instance Method Details
#info ⇒ Object
69 |
# File 'lib/woodstove/packagecommands.rb', line 69 def info; 'Remove specified packages globally.'; end |
#long ⇒ Object
66 |
# File 'lib/woodstove/packagecommands.rb', line 66 def long; 'remove-global'; end |
#opts ⇒ Object
68 |
# File 'lib/woodstove/packagecommands.rb', line 68 def opts; '[packages]'; end |
#run(packages) ⇒ Object
71 72 73 74 75 76 |
# File 'lib/woodstove/packagecommands.rb', line 71 def run packages need_args packages, 'You must specify packages to remove globally.' packages.each do |package| remove_package package, global_kindling, global_kindling_bin end end |
#short ⇒ Object
67 |
# File 'lib/woodstove/packagecommands.rb', line 67 def short; 'rg'; end |