Revision aacd8973
Added by Bryan Kearney over 9 years ago
app/services/foreman/plugin.rb | ||
---|---|---|
plugin.description gem.description
|
||
plugin.url gem.homepage
|
||
plugin.version gem.version.to_s
|
||
plugin.path gem.full_gem_path
|
||
end
|
||
|
||
plugin.instance_eval(&block)
|
||
... | ... | |
end
|
||
end
|
||
|
||
def_field :name, :description, :url, :author, :author_url, :version
|
||
def_field :name, :description, :url, :author, :author_url, :version, :path
|
||
attr_reader :id
|
||
|
||
def initialize(id)
|
Also available in: Unified diff
Fixes #8325 : Enhance the plugin object to use the gem path to understand where the plugin is installed