Sha256: c8c5e23870bfccac0b42e382146d76f530bbd92adb8463755750b71330e6a071

Contents?: true

Size: 429 Bytes

Versions: 50

Compression:

Stored size: 429 Bytes

Contents

module MCollective
  module Data
    class Agent_data<Base
      query do |plugin|
        raise "No agent called #{plugin} found" unless PluginManager.include?("#{plugin}_agent")

        agent = PluginManager["#{plugin}_agent"]

        result[:agent] = plugin

        [:license, :timeout, :description, :url, :version, :author].each do |item|
          result[item] = agent.meta[item]
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 3 rubygems

Version Path
mcollective-client-2.11.3 lib/mcollective/data/agent_data.rb
mcollective-client-2.11.2 lib/mcollective/data/agent_data.rb
mcollective-client-2.11.1 lib/mcollective/data/agent_data.rb
mcollective-client-2.11.0 lib/mcollective/data/agent_data.rb
mcollective-client-2.10.4 lib/mcollective/data/agent_data.rb
mcollective-client-2.10.3 lib/mcollective/data/agent_data.rb
mcollective-client-2.10.2 lib/mcollective/data/agent_data.rb
mcollective-client-2.10.1 lib/mcollective/data/agent_data.rb
mcollective-client-2.10.0 lib/mcollective/data/agent_data.rb
mcollective-client-2.8.7 lib/mcollective/data/agent_data.rb
mcollective-client-2.8.5 lib/mcollective/data/agent_data.rb
mcollective-client-2.8.8 lib/mcollective/data/agent_data.rb
mcollective-client-2.8.6 lib/mcollective/data/agent_data.rb
mcollective-client-2.9.1 lib/mcollective/data/agent_data.rb
mcollective-client-2.9.0 lib/mcollective/data/agent_data.rb
mcollective-client-2.8.9 lib/mcollective/data/agent_data.rb
dtk-node-agent-0.7.7 mcollective_additions/plugins/v2.2/data/agent_data.rb
dtk-node-agent-0.7.6 mcollective_additions/plugins/v2.2/data/agent_data.rb
dtk-node-agent-0.7.5 mcollective_additions/plugins/v2.2/data/agent_data.rb
mcollective-client-2.8.4 lib/mcollective/data/agent_data.rb