From b03a664ec42bd93a7547fb53216ab3ae5d099dcd Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Thu, 5 Apr 2018 22:58:56 +0100 Subject: Move the terraform utilities to lib/ Change the module to a class, which is used to represent a terraform working directory. Change the routing for the terraform http backends, to remove any connection with mini environments, and remove this concern from the new TerraformWorkingDirectory class also. --- config/routes.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 51e5add..e706194 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -32,11 +32,11 @@ Rails.application.routes.draw do end end + resources :terraform_http_backend, + controller: :terraform_http_backend, + except: %i(new edit update) + resources :mini_environments, path: '/' do post '/', to: 'mini_environments#perform_action', as: 'perform_action' - - resource :terraform_http_backend, - controller: :terraform_http_backend, - except: %i[new edit update] end end -- cgit v1.2.3