diff options
author | Christopher Baines <mail@cbaines.net> | 2018-03-26 21:20:38 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-04-03 21:57:39 +0100 |
commit | 24d78d23c037e790eff3ec7720eceae485204931 (patch) | |
tree | 2bb59f21332face32f882664372bd04fa540a8f7 /app/controllers | |
parent | fbf13e46f9df827c9c438fb920accca434d4366c (diff) | |
download | govuk-mini-environment-admin-24d78d23c037e790eff3ec7720eceae485204931.tar govuk-mini-environment-admin-24d78d23c037e790eff3ec7720eceae485204931.tar.gz |
Fix Rubocop issues
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/mini_environments_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/mini_environments_controller.rb b/app/controllers/mini_environments_controller.rb index d845787..ba4c53b 100644 --- a/app/controllers/mini_environments_controller.rb +++ b/app/controllers/mini_environments_controller.rb @@ -12,11 +12,11 @@ class MiniEnvironmentsController < ApplicationController :mini_environment ).permit( :name, - :govuk_guix_revision_id, + :govuk_guix_revision_id ) logger.error(parameters) - + @mini_environment = MiniEnvironment.new(parameters) @mini_environment.backend = Backends.find_by_type_and_id( params.require(:mini_environment).fetch(:backend) @@ -24,7 +24,7 @@ class MiniEnvironmentsController < ApplicationController @mini_environment.save! @mini_environment.backend.build(@mini_environment) - + redirect_to @mini_environment end @@ -32,16 +32,16 @@ class MiniEnvironmentsController < ApplicationController @mini_environment = MiniEnvironment.find(params[:mini_environment_id]) action = params.require(:commit) - + case action when 'Destroy' MiniEnvironmentJob.enqueue(@mini_environment.id, :destroy) - flash[:notice] = "Destroying mini environment" + flash[:notice] = 'Destroying mini environment' when 'Start' MiniEnvironmentJob.enqueue(@mini_environment.id, :start) - flash[:notice] = "Starting mini environment" + flash[:notice] = 'Starting mini environment' else flash[:error] = "Unknown action #{action}" end |