Class: ItunesController::ClearFilesCommand
- Inherits:
-
ServerCommand
- Object
- ServerCommand
- ItunesController::ClearFilesCommand
- Defined in:
- lib/itunesController/controllserver.rb
Overview
This command is used to remove and registerd files that were registerd with the FILE command.
Instance Attribute Summary
Attributes inherited from ServerCommand
#name, #requiredLoginState, #singleThreaded
Instance Method Summary collapse
-
#initialize(state, itunes) ⇒ ClearFilesCommand
constructor
The constructor.
- #processData(line, io) ⇒ Object
Methods inherited from ServerCommand
#executeSingleThreaded, #processLine
Constructor Details
#initialize(state, itunes) ⇒ ClearFilesCommand
The constructor
266 267 268 |
# File 'lib/itunesController/controllserver.rb', line 266 def initialize(state,itunes) super(ItunesController::CommandName::CLEARFILES,ServerState::AUTHED,false,state,itunes) end |
Instance Method Details
#processData(line, io) ⇒ Object
270 271 272 273 |
# File 'lib/itunesController/controllserver.rb', line 270 def processData(line,io) @state.files=[] return true, "220 ok\r\n" end |