From 0fec0fb18426ec092bc5d51cee3d17503ff4cfb0 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 14 Dec 2012 21:23:41 +0400 Subject: [PATCH] #778: remove unnecessary code --- lib/abf_worker/file_system_worker.rb | 2 -- lib/abf_worker/runners/platform.rb | 25 ------------------------- 2 files changed, 27 deletions(-) delete mode 100644 lib/abf_worker/runners/platform.rb diff --git a/lib/abf_worker/file_system_worker.rb b/lib/abf_worker/file_system_worker.rb index 6ef075470..62d2fbe77 100644 --- a/lib/abf_worker/file_system_worker.rb +++ b/lib/abf_worker/file_system_worker.rb @@ -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 diff --git a/lib/abf_worker/runners/platform.rb b/lib/abf_worker/runners/platform.rb deleted file mode 100644 index 2b024c8d2..000000000 --- a/lib/abf_worker/runners/platform.rb +++ /dev/null @@ -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 \ No newline at end of file