lmcadm 0.6.1 → 0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cfef26e13a41e5ffc91f559b0ac2f34222e40432
4
- data.tar.gz: 9678ab533c7fe599d80622fcf6b7cc1af1e246ea
3
+ metadata.gz: 37fb97ffb3e950f8c16de2b88d918b75647fa61b
4
+ data.tar.gz: 3fa5a3b1f73f42772df2df1a81ede6f6c326868d
5
5
  SHA512:
6
- metadata.gz: 14623bb40d2a63fef8f0768db91ec4587f069145d39f32bf6d270748398b69877496cb8dd3b84b5fdbdfb06b82370200e572599a18e8f64668a95d47bfabbe3e
7
- data.tar.gz: 7af90475e75b6f46ce8bbcd0383e4cb7af4f29b9d0679ae0959470ef18bd4037cfb1e6dd672aba0ccb9301fdcd8a9dd9d2078ab4ca9cc2afe6c2f2145f8d5434
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
- account = LMC::Account.get_by_uuid_or_name(options[:account])
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 = [LMC::Authority::CLOUD_SERVICE_DEVICE_PRIVATE_CLOUD]
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
@@ -1,3 +1,3 @@
1
1
  module LMCAdm
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
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.1
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-08-14 00:00:00.000000000 Z
11
+ date: 2018-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler