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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3727dfd86efb6d3d5cef5c602aa690e7d553a605
4
- data.tar.gz: 628dfedd3fd24a5aa4ed1a6527e0a0716e059dc9
3
+ metadata.gz: d77e74007fb07ead19ff4c8842e051e22ea1e608
4
+ data.tar.gz: 5e4d95af5ee895661392e2e365af996b03082560
5
5
  SHA512:
6
- metadata.gz: 302bc95abceca07d03495259b28b7a6605e2e204ee081ce8a208df80e89f306a5d14084d029b4fd904d88456c8bcf3da37cd9369aebe2b14a4d5bca0553ab7c6
7
- data.tar.gz: aa443e757687fa058a044ed5ec2e746d8adb3d1bd7dcec14b9fe8c27b382620a1997ebd9a9aed6c69928ee0f2100b66037577fe95601d50105736b12b80ed059
6
+ metadata.gz: 096a1822e79653eb41a769423da2d176131dabd1dd5061ffd580ac4cc5322b2aed9ac8241df708bb8198834c943ace377b1eb7a80f9d254d6973c5ecc191256a
7
+ data.tar.gz: b12a7f69945c869ad4b4a1055df43ef5f3ebf7c4ff119f8f7fb9dc247eaf05e5d975c9826916be8caa231a50e91d2023bd4e526efb880aafdcc12f69d111a9c1
@@ -20,4 +20,4 @@ module Cloudpassage
20
20
  data.to_s
21
21
  end
22
22
  end
23
- end
23
+ end
@@ -13,4 +13,4 @@ module Cloudpassage
13
13
  Servers.new(@token, @base_resource['servers'])
14
14
  end
15
15
  end
16
- end
16
+ end
@@ -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)
@@ -1,4 +1,4 @@
1
1
  module Cloudpassage
2
2
  # Version
3
- VERSION = '0.0.10'
3
+ VERSION = '0.0.12'
4
4
  end
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.10
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-04-21 00:00:00.000000000 Z
11
+ date: 2014-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake