Class: RemoveGlobalCommand

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

Instance Method Summary collapse

Instance Method Details

#infoObject



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

def info; 'Remove specified packages globally.'; end

#longObject



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

def long; 'remove-global'; end

#optsObject



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

#shortObject



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

def short; 'rg'; end