lib/cc/engine_registry.rb in codeclimate-0.92.0 vs lib/cc/engine_registry.rb in codeclimate-0.92.1
- old
+ new
@@ -4,11 +4,11 @@
DEFAULT_MEMORY_LIMIT = 1_024_000_000
DEFAULT_COMMAND = nil
DEFAULT_MANIFEST_PATH = File.expand_path("../../../config/engines.yml", __FILE__)
- EngineDetails = Struct.new(:image, :command, :description, :memory, :source_library, :channel_versions)
+ EngineDetails = Struct.new(:image, :command, :description, :memory, :source_library, :channel_versions, :plugin)
EngineDetailsNotFoundError = Class.new(StandardError)
def initialize(path = DEFAULT_MANIFEST_PATH, prefix = nil)
@yaml = YAML.safe_load(File.read(path))
@prefix = prefix || ENV["CODECLIMATE_PREFIX"] || ""
@@ -38,9 +38,10 @@
metadata.fetch("command", DEFAULT_COMMAND),
metadata.fetch("description", "(No description available)"),
memory_limit(metadata["minimum_memory_limit"]),
metadata.fetch("source-library", {}),
metadata.fetch("channel-versions", {}),
+ metadata.fetch("plugin", {}),
)
end
rescue KeyError
raise EngineDetailsNotFoundError, not_found_message(engine, channels)
end