Class: RemoveCommand
- Inherits:
-
Object
- Object
- RemoveCommand
- Defined in:
- lib/woodstove/packagecommands.rb
Instance Method Summary collapse
Instance Method Details
#info ⇒ Object
39 |
# File 'lib/woodstove/packagecommands.rb', line 39 def info; 'Remove specified packages.'; end |
#long ⇒ Object
36 |
# File 'lib/woodstove/packagecommands.rb', line 36 def long; 'remove'; end |
#opts ⇒ Object
38 |
# File 'lib/woodstove/packagecommands.rb', line 38 def opts; '[packages]'; end |
#run(packages) ⇒ Object
41 42 43 44 45 46 |
# File 'lib/woodstove/packagecommands.rb', line 41 def run packages need_args packages, 'You must specify packages to remove.' packages.each do |package| remove_package package, "#{FileUtils.pwd}/kindling", "#{FileUtils.pwd}/kindling/.bin" end end |
#short ⇒ Object
37 |
# File 'lib/woodstove/packagecommands.rb', line 37 def short; 'r'; end |