Class: Registry::Extension

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/radiant/extension/script.rb

Instance Method Summary collapse

Instance Method Details

#inspectObject



18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/radiant/extension/script.rb', line 18

def inspect
%{
Name:           #{name}
Description:
  #{description}
Author:         #{author.name} <#{author.email}>
Source code:    #{repository_url}
Download:       #{download_url}
Install type:   #{install_type}
Supports:       Radiant #{supports_radiant_version}
}.strip
end

#installObject



10
11
12
# File 'lib/radiant/extension/script.rb', line 10

def install
  Registry.const_get(install_type).new(self).install
end

#uninstallObject



14
15
16
# File 'lib/radiant/extension/script.rb', line 14

def uninstall
  Uninstaller.new(self).uninstall
end