lmcadm 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/lmcadm/account_commands.rb +2 -4
- data/lib/lmcadm/commands/privatecloud.rb +0 -1
- data/lib/lmcadm/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: 37fb97ffb3e950f8c16de2b88d918b75647fa61b
|
4
|
+
data.tar.gz: 3fa5a3b1f73f42772df2df1a81ede6f6c326868d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de9c4e332e7e3067f85317e2ce4f331091c202270e5af84ddcef4764305d782e7c4276508e46b2b7308e44329f45060237909ed7c53d1f95d437daf8a056f934
|
7
|
+
data.tar.gz: e825d36e1b233dfb6e3d8cd993028e122df8a5ce1a375294ee7418950e30f10b39669c569c2518588c9b7833a025ba8eafd4beeab9c07cab42c25ec3be2e35c4
|
data/README.md
CHANGED
@@ -30,6 +30,8 @@ After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
|
30
30
|
|
31
31
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
32
|
|
33
|
+
### Branching
|
34
|
+
To avoid immediate chaos, a branching model of "create a branch for new versions aka v0.6.1" has been adpoted until further notice.
|
33
35
|
### Using a local version of the lmc gem
|
34
36
|
|
35
37
|
Set the environment variable LMCADM\_PATH\_DEP to 1 to use the _lmc_ gem from ../ruby-lmc.
|
@@ -39,6 +41,7 @@ Example:
|
|
39
41
|
## Contributing
|
40
42
|
|
41
43
|
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lmcadm.
|
44
|
+
The sentence above is patently wrong currently.
|
42
45
|
|
43
46
|
## License
|
44
47
|
|
@@ -276,7 +276,6 @@ module LMCAdm
|
|
276
276
|
account = LMC::Account.get_by_uuid_or_name args.first
|
277
277
|
authorities = account.authorities
|
278
278
|
max = Helpers::longest_in_collection(authorities.map {|a| a.name})
|
279
|
-
puts max
|
280
279
|
tp authorities, [{:id => {:width => 36}}, {:name => {:width => max}}, :visibility, :type]
|
281
280
|
end
|
282
281
|
end
|
@@ -326,15 +325,14 @@ module LMCAdm
|
|
326
325
|
c.command :memberadd do |ma|
|
327
326
|
ma.flag :A, :account, :required => true
|
328
327
|
ma.action do |global_options, options, args|
|
329
|
-
|
328
|
+
target_account = LMC::Account.get_by_uuid_or_name options[:account]
|
330
329
|
membership = LMC::Membership.new
|
331
330
|
membership.name = args.first
|
332
331
|
membership.type = "MEMBER"
|
333
332
|
membership.state = "ACTIVE"
|
334
|
-
membership.authorities = [
|
333
|
+
membership.authorities = []
|
335
334
|
puts membership.to_json
|
336
335
|
c = LMC::Cloud.instance
|
337
|
-
target_account = LMC::Account.get_by_uuid_or_name options[:account]
|
338
336
|
c.auth_for_account LMC::Account.get LMC::Account::ROOT_ACCOUNT_UUID
|
339
337
|
c.post ['cloud-service-auth', 'accounts', target_account.id, 'members'], membership
|
340
338
|
end
|
@@ -6,7 +6,6 @@ module LMCAdm
|
|
6
6
|
url.flag :A, :account
|
7
7
|
url.action do |global_options, options, args|
|
8
8
|
account = LMC::Account.get_by_uuid_or_name options[:account]
|
9
|
-
puts account
|
10
9
|
LMC::Cloud.instance.auth_for_account account
|
11
10
|
LMC::Cloud.instance.put ["cloud-service-devices", "accounts", account.id, "redirect" ], { "url" => args.first }
|
12
11
|
end
|
data/lib/lmcadm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lmcadm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- erpel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|