diff options
Diffstat (limited to 'app/jobs')
-rw-r--r-- | app/jobs/destroy_job.rb | 27 | ||||
-rw-r--r-- | app/jobs/start_job.rb | 27 |
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 |