Class: RemoveCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/woodstove/packagecommands.rb

Instance Method Summary collapse

Instance Method Details

#infoObject



39
# File 'lib/woodstove/packagecommands.rb', line 39

def info; 'Remove specified packages.'; end

#longObject



36
# File 'lib/woodstove/packagecommands.rb', line 36

def long; 'remove'; end

#optsObject



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

#shortObject



37
# File 'lib/woodstove/packagecommands.rb', line 37

def short; 'r'; end