Class: Registry::Extension

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

Instance Method Summary collapse

Instance Method Details

#inspectObject



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

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

#installObject



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

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

#uninstallObject



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

def uninstall
  Uninstaller.new(self).uninstall
end