wco_hosting 0.0.0.22 → 0.0.0.24
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f47cf4cc2b388bb3c0caefb58c8f8e54168c1ebddd4a73ecdbce9d2eb8c73b48
|
4
|
+
data.tar.gz: 872ec182cffa5ad7978cc4baa0fd001048664449afc058b14080a361b7bffe45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f6338b4e27f91b846c2deb7e4465099ee616412f27e8e2c75735ffc4eb42e19ecc9150769a9d96114505f27ce759d4e435cb29337a4114574642a149bff8271e
|
7
|
+
data.tar.gz: 31819e3656572ef71c9af024a1767de03fe86151a584f61df9e49e69948bf51fedec9fa9a44df9a89c6f7326c62c2e17e095352d5962e2e3ccb8e22493b612f4
|
@@ -0,0 +1,32 @@
|
|
1
|
+
|
2
|
+
class WcoHosting::EnvironmentsController < WcoHosting::ApplicationController
|
3
|
+
|
4
|
+
def index
|
5
|
+
authorize! :index, WcoHosting::Environment
|
6
|
+
@environments = WcoHosting::Environment.all
|
7
|
+
end
|
8
|
+
|
9
|
+
def edit
|
10
|
+
@environment = WcoHosting::Environment.find params[:id]
|
11
|
+
authorize! :edit, @environment
|
12
|
+
end
|
13
|
+
|
14
|
+
def show
|
15
|
+
@environment = WcoHosting::Environment.find params[:id]
|
16
|
+
authorize! :show, @environment
|
17
|
+
@subenvironments = WcoHosting::Appliance.where( environment: @environment.name ).map( &:subenvironment )
|
18
|
+
end
|
19
|
+
|
20
|
+
def update
|
21
|
+
@environment = WcoHosting::Environment.find params[:id]
|
22
|
+
authorize! :update, @environment
|
23
|
+
if @environment.update_attributes( params[:environment].permit! )
|
24
|
+
flash_notice @environment
|
25
|
+
else
|
26
|
+
flash_alert @environment
|
27
|
+
end
|
28
|
+
redirect_to action: :index
|
29
|
+
end
|
30
|
+
|
31
|
+
|
32
|
+
end
|
data/lib/wco_hosting/engine.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wco_hosting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.0.
|
4
|
+
version: 0.0.0.24
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Pudeyev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cancancan
|