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
choria-mcorpc-support-2.22.1 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.22.0 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.21.1 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.21.0 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.20.8 lib/mcollective/data/agent_data.rb
mcollective-client-2.12.5 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.20.7 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.20.6 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.20.5 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.20.4 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.20.3 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.20.2 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-2.20.0 lib/mcollective/data/agent_data.rb
choria-mcorpc-support-0.0.1 lib/mcollective/data/agent_data.rb
mcollective-client-2.12.4 lib/mcollective/data/agent_data.rb
mcollective-client-2.12.3 lib/mcollective/data/agent_data.rb
mcollective-client-2.12.1 lib/mcollective/data/agent_data.rb
mcollective-client-2.12.0 lib/mcollective/data/agent_data.rb
mcollective-client-2.10.6 lib/mcollective/data/agent_data.rb
mcollective-client-2.11.4 lib/mcollective/data/agent_data.rb