Class: Radiant::Extension::Script::Uninstall
- Inherits:
-
Object
- Object
- Radiant::Extension::Script::Uninstall
- Includes:
- Util
- Defined in:
- lib/radiant/extension/script.rb
Instance Attribute Summary
Attributes included from Util
Instance Method Summary collapse
-
#initialize(args = []) ⇒ Uninstall
constructor
A new instance of Uninstall.
Methods included from Util
#extension_paths, #find_extension, #installed?, #load_extensions, #registered?, #to_extension_name
Constructor Details
#initialize(args = []) ⇒ Uninstall
Returns a new instance of Uninstall.
320 321 322 323 324 325 326 327 328 |
# File 'lib/radiant/extension/script.rb', line 320 def initialize(args=[]) raise ArgumentError, "You must specify an extension to uninstall." if args.blank? self.extension_name = to_extension_name(args.shift) if installed? find_extension && extension.uninstall else puts "#{extension_name} is not installed." end end |