Class: ItunesController::VersionCommand

Inherits:
ServerCommand show all
Defined in:
lib/itunesController/controllserver.rb

Overview

This command is used to return version information

Instance Attribute Summary

Attributes inherited from ServerCommand

#name, #requiredLoginState, #singleThreaded

Instance Method Summary collapse

Methods inherited from ServerCommand

#executeSingleThreaded, #processLine

Constructor Details

#initialize(state, itunes) ⇒ VersionCommand

The constructor

Parameters:



409
410
411
# File 'lib/itunesController/controllserver.rb', line 409

def initialize(state,itunes)
    super(ItunesController::CommandName::VERSION,nil,false,state,itunes)
end

Instance Method Details

#processData(line, io) ⇒ Object



413
414
415
416
417
# File 'lib/itunesController/controllserver.rb', line 413

def processData(line,io)
    io.puts("ITunes control server:" +ItunesController::VERSION)
    io.puts("Apple iTunes version: "+@itunes.getItunesVersion)
    return true, "220 ok\r\n"
end