aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-04-07 15:17:37 +0100
committerChristopher Baines <mail@cbaines.net>2018-04-12 08:30:53 +0100
commit6b7f16aa3073a4d5cf5d3312a005ac4d2463ef71 (patch)
treef60b085a1dfc83743e3e5c6f5871b5d262656678 /app
parentba9394df03dc69c45dd27535bee8cd0c50a4d968 (diff)
downloadgovuk-mini-environment-admin-6b7f16aa3073a4d5cf5d3312a005ac4d2463ef71.tar
govuk-mini-environment-admin-6b7f16aa3073a4d5cf5d3312a005ac4d2463ef71.tar.gz
Remove some unused jobs
These have been replaced by the MiniEnvironmentJob.
Diffstat (limited to 'app')
-rw-r--r--app/jobs/destroy_job.rb27
-rw-r--r--app/jobs/start_job.rb27
2 files changed, 0 insertions, 54 deletions
diff --git a/app/jobs/destroy_job.rb b/app/jobs/destroy_job.rb
deleted file mode 100644
index ff1f713..0000000
--- a/app/jobs/destroy_job.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# GOV.UK Mini Environment Admin
-# Copyright © 2018 Christopher Baines <mail@cbaines.net>
-#
-# This file is part of the GOV.UK Mini Environment Admin.
-#
-# The GOV.UK Mini Environment Admin is free software: you can
-# redistribute it and/or modify it under the terms of the GNU Affero
-# General Public License as published by the Free Software Foundation,
-# either version 3 of the License, or (at your option) any later
-# version.
-#
-# The GOV.UK Mini Environment Admin is distributed in the hope that it
-# will be useful, but WITHOUT ANY WARRANTY; without even the implied
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-# See the GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public
-# License along with the GOV.UK Mini Environment Admin. If not, see
-# <http://www.gnu.org/licenses/>.
-
-class DestroyJob < MiniEnvironmentJob
- @retry_interval = 30
-
- def perform_mini_environment_action
- @mini_environment.backend.destroy(@mini_environment)
- end
-end
diff --git a/app/jobs/start_job.rb b/app/jobs/start_job.rb
deleted file mode 100644
index 3616814..0000000
--- a/app/jobs/start_job.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# GOV.UK Mini Environment Admin
-# Copyright © 2018 Christopher Baines <mail@cbaines.net>
-#
-# This file is part of the GOV.UK Mini Environment Admin.
-#
-# The GOV.UK Mini Environment Admin is free software: you can
-# redistribute it and/or modify it under the terms of the GNU Affero
-# General Public License as published by the Free Software Foundation,
-# either version 3 of the License, or (at your option) any later
-# version.
-#
-# The GOV.UK Mini Environment Admin is distributed in the hope that it
-# will be useful, but WITHOUT ANY WARRANTY; without even the implied
-# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
-# See the GNU Affero General Public License for more details.
-#
-# You should have received a copy of the GNU Affero General Public
-# License along with the GOV.UK Mini Environment Admin. If not, see
-# <http://www.gnu.org/licenses/>.
-
-class StartJob < MiniEnvironmentJob
- @retry_interval = 30
-
- def perform_mini_environment_action
- @mini_environment.backend.start(@mini_environment)
- end
-end