#778: remove unnecessary code

This commit is contained in:
Vokhmin Alexey V 2012-12-14 21:23:41 +04:00
parent 8e63d78f77
commit 0fec0fb184
2 changed files with 0 additions and 27 deletions

View File

@ -5,8 +5,6 @@ module AbfWorker
def self.perform(options)
id, action = options['id'], options['action']
case options['type']
when 'platform'
@runner = AbfWorker::Runners::Platform.new id, action
when 'repository'
@runner = AbfWorker::Runners::Repository.new id, action
end

View File

@ -1,25 +0,0 @@
module AbfWorker
module Runners
class Platform < AbfWorker::Runners::Base
# @param [String] id The id of platform
def initialize(id, action)
super action
@platform = ::Platform.find id
end
protected
def create
platform_path = @platform.path
mk_dir(platform_path)
['/projects', '/repository'].each{ |f| mk_dir(platform_path + f) }
end
def destroy
system("rm -rf #{@platform.path}")
end
end
end
end