Skip to content

Commit

Permalink
(choria-io#30) move the aiomodule package into this module, retire ot…
Browse files Browse the repository at this point in the history
…hers

Retires all the other packaging methods in favour of the aio module
one which is being renamed to forge and used as default
  • Loading branch information
ripienaar committed Sep 18, 2019
1 parent c87f5b2 commit 15f9555
Show file tree
Hide file tree
Showing 28 changed files with 451 additions and 1,666 deletions.
7 changes: 5 additions & 2 deletions lib/mcollective/application/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def doc_command
# Creates the correct package plugin object.
def prepare_plugin
plugintype = set_plugin_type unless configuration[:plugintype]
configuration[:format] = "ospackage" unless configuration[:format]
configuration[:format] = "forge" unless configuration[:format]
PluginPackager.load_packagers
plugin_class = PluginPackager[configuration[:plugintype]]

Expand All @@ -308,7 +308,10 @@ def prepare_plugin
configuration[:dependency].map!{|dep| {:name => dep, :version => nil}}
end

mcdependency = {:mcname => configuration[:mcname], :mcversion => configuration[:mcversion]}
mcdependency = {
:mcname => configuration[:mcname],
:mcversion => configuration[:mcversion]
}

# Deprecation warning for --iteration
if configuration[:iteration]
Expand Down
18 changes: 11 additions & 7 deletions lib/mcollective/pluginpackager/agent_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(configuration, mcdependency, plugintype)
@revision = configuration[:revision] || 1
@preinstall = configuration[:preinstall]
@postinstall = configuration[:postinstall]
@vendor = configuration[:vendor] || "Puppet Labs"
@vendor = configuration[:vendor] || "Choria.IO User"
@dependencies = configuration[:dependency] || []
@target_path = File.expand_path(@path)
@metadata, mcversion = PluginPackager.get_metadata(@path, "agent")
Expand All @@ -36,9 +36,11 @@ def identify_packages

# Obtain Agent package files and dependencies.
def agent
agent = {:files => [],
:dependencies => @dependencies.clone,
:description => "Agent plugin for #{@metadata[:name]}"}
agent = {
:files => [],
:dependencies => @dependencies.clone,
:description => "Agent plugin for #{@metadata[:name]}"
}

agentdir = File.join(@path, "agent")

Expand Down Expand Up @@ -69,9 +71,11 @@ def client

# Obtain common package files and dependencies.
def common
common = {:files =>[],
:dependencies => @dependencies.clone,
:description => "Common libraries for #{@metadata[:name]}"}
common = {
:files =>[],
:dependencies => @dependencies.clone,
:description => "Common libraries for #{@metadata[:name]}"
}

datadir = File.join(@path, "data", "**")
utildir = File.join(@path, "util", "**", "**")
Expand Down
237 changes: 0 additions & 237 deletions lib/mcollective/pluginpackager/debpackage_packager.rb

This file was deleted.

Loading

0 comments on commit 15f9555

Please sign in to comment.