cloudpassage 0.0.10 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudpassage/collection.rb +1 -1
- data/lib/cloudpassage/groups.rb +1 -1
- data/lib/cloudpassage/servers.rb +10 -0
- data/lib/cloudpassage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d77e74007fb07ead19ff4c8842e051e22ea1e608
|
4
|
+
data.tar.gz: 5e4d95af5ee895661392e2e365af996b03082560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 096a1822e79653eb41a769423da2d176131dabd1dd5061ffd580ac4cc5322b2aed9ac8241df708bb8198834c943ace377b1eb7a80f9d254d6973c5ecc191256a
|
7
|
+
data.tar.gz: b12a7f69945c869ad4b4a1055df43ef5f3ebf7c4ff119f8f7fb9dc247eaf05e5d975c9826916be8caa231a50e91d2023bd4e526efb880aafdcc12f69d111a9c1
|
data/lib/cloudpassage/groups.rb
CHANGED
data/lib/cloudpassage/servers.rb
CHANGED
@@ -91,6 +91,16 @@ module Cloudpassage
|
|
91
91
|
@server.commands.get(JSON.parse(@base_resource[username].put(payload.to_json, headers))['command']['id'])
|
92
92
|
end
|
93
93
|
|
94
|
+
def enable_account(username)
|
95
|
+
payload = {:account => {:active=>true}}
|
96
|
+
@server.commands.get(json.parse(@base_resource[username].put(payload.to_json, headers))['command']['id'])
|
97
|
+
end
|
98
|
+
|
99
|
+
def disable_account(username)
|
100
|
+
payload = {:account => {:active=>false}}
|
101
|
+
@server.commands.get(json.parse(@base_resource[username].put(payload.to_json, headers))['command']['id'])
|
102
|
+
end
|
103
|
+
|
94
104
|
def reset(username, opts = {})
|
95
105
|
payload = {'password' => password_opts.merge(opts)}
|
96
106
|
JSON.parse @base_resource[username]['password'].put(payload.to_json, headers)
|
data/lib/cloudpassage/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloudpassage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- mshea
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|