Class: Vimmer::CLI
- Inherits:
-
Thor
show all
- Defined in:
- lib/vimmer/cli.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
47
48
49
50
|
# File 'lib/vimmer/cli.rb', line 47
def method_missing(name, *args)
$stderr.puts 'Could not find command "%s".' % name
exit 1
end
|
Instance Method Details
#uninstall(name) ⇒ Object
31
32
33
34
35
36
37
38
|
# File 'lib/vimmer/cli.rb', line 31
def uninstall(name)
unless Vimmer.plugin?(name)
$stderr.puts "The plugin #{name} is not installed."
exit 1
end
installer = Vimmer::Installers::Github.new(:name => name)
installer.uninstall
end
|