wco_hosting 0.0.0.22 → 0.0.0.23

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: 88771bf05ca29f18ef980ce4d77335f87c1546163636d412ca5eb3723b48131b
4
- data.tar.gz: b52c0dcb2e54622db4263fa2f125505b6d9177087a50b7275d39bd19dd11ae8c
3
+ metadata.gz: cff885e1e36cf5412a159cd74c0b3cf7134ceb21ec3c8a3ba691c34ddb404746
4
+ data.tar.gz: 133c12ae6f3f43365bec9df2bf249b206f9629f0854f1bb8e01369f07338b00c
5
5
  SHA512:
6
- metadata.gz: 17045238ded96201fa65721e3d71de2377d2ef079822ef7e123a0458c19c70db9c2252c83569a48a8a2613d398eb44dda14bf5a670670480014a94e7f9dfe9fb
7
- data.tar.gz: 2acf7ca22833247af4c2fbd1c86d296873a5e356a9812584918d1bd0eb6d020732131da2b33daf3dc9094782484fcd7787a56defaa18f2f224174601d580d0ce
6
+ metadata.gz: f4a953cd44c0f5937dac0a7f1f236f80c374fe824785468514cb678ac55d226c4023e1a62e37d376fda7c68b14a806d1d4114314c55b2253a551ecbe9bad76f3
7
+ data.tar.gz: 700eebd07c51fb588669353e4899b3c07e706e3b852c751e74e3027d2d4ea1585b5d1c750fece28a2441c441fa1f3e79ca98267a1fcd40c453748b8ab2a202bf
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_hosting
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.22
4
+ version: 0.0.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev