Project

General

Profile

« Previous | Next » 

Revision 355ba318

Added by Marc Dequènes almost 14 years ago

  • ID 355ba318ae0d27a4a10a5cf0761c726bf875a68b

[fix] separate core api version from cyborg service api version

View differences:

lib/cyborghood/cyborg/botnet.rb
module BotNet
attr_reader :interface
CORE_API_VERSION = "1.0~"
def self.included(base)
case Config.instance.botnet.connection_type
when 'unix_socket'
......
node "_cyborg_" do
on_request do |request|
request.reply.results = {
:name => bot.name,
:product_name => PRODUCT,
:product_version => VERSION,
:api_version => version
:name => bot.name,
:product_name => PRODUCT,
:product_version => VERSION,
:core_api_version => CORE_API_VERSION,
:cyborg_api_version => version
}
end
end

Also available in: Unified diff