opennebula-cli 4.12.1 → 4.13.80.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/NOTICE +1 -6
- data/bin/oneacl +1 -1
- data/bin/oneflow +1 -1
- data/bin/onehost +13 -0
- data/bin/oneimage +31 -1
- data/bin/onevcenter +6 -76
- data/bin/onevm +154 -59
- data/lib/one_helper.rb +3 -3
- data/lib/one_helper/oneacct_helper.rb +29 -7
- data/lib/one_helper/onehost_helper.rb +41 -0
- data/lib/one_helper/oneimage_helper.rb +47 -2
- data/lib/one_helper/onequota_helper.rb +3 -3
- data/lib/one_helper/onevm_helper.rb +364 -21
- data/lib/one_helper/onevnet_helper.rb +4 -4
- data/lib/one_helper/onezone_helper.rb +5 -5
- metadata +15 -15
@@ -303,11 +303,11 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
|
|
303
303
|
d['AR_ID']
|
304
304
|
end
|
305
305
|
|
306
|
-
column :OWNER, "", :left, :size=>
|
306
|
+
column :OWNER, "", :left, :size=>15 do |d|
|
307
307
|
if d['VM']
|
308
|
-
"
|
308
|
+
"V:#{d['VM']}"
|
309
309
|
elsif d['VNET']
|
310
|
-
"
|
310
|
+
"N:#{d['VNET']}"
|
311
311
|
end
|
312
312
|
end
|
313
313
|
|
@@ -319,7 +319,7 @@ class OneVNetHelper < OpenNebulaHelper::OneHelper
|
|
319
319
|
d["IP"]||"-"
|
320
320
|
end
|
321
321
|
|
322
|
-
column :IP6_GLOBAL, "", :donottruncate, :size=>
|
322
|
+
column :IP6_GLOBAL, "", :donottruncate, :size=>26 do |d|
|
323
323
|
d["IP6_GLOBAL"]||"-"
|
324
324
|
end
|
325
325
|
end.show(leases, {})
|
@@ -31,7 +31,7 @@ class OneZoneHelper < OpenNebulaHelper::OneHelper
|
|
31
31
|
|
32
32
|
table = CLIHelper::ShowTable.new(config_file, self) do
|
33
33
|
column :CURRENT, "Active Zone", :size=>1 do |d|
|
34
|
-
"*" if helper.client.one_endpoint.strip ==
|
34
|
+
"*" if helper.client.one_endpoint.strip ==
|
35
35
|
d["TEMPLATE"]['ENDPOINT'].strip
|
36
36
|
end
|
37
37
|
|
@@ -45,7 +45,7 @@ class OneZoneHelper < OpenNebulaHelper::OneHelper
|
|
45
45
|
|
46
46
|
column :ENDPOINT, "Endpoint of the Zone", :left, :size=>45 do |d|
|
47
47
|
d["TEMPLATE"]['ENDPOINT']
|
48
|
-
end
|
48
|
+
end
|
49
49
|
|
50
50
|
default :CURRENT, :ID, :NAME, :ENDPOINT
|
51
51
|
end
|
@@ -62,14 +62,14 @@ class OneZoneHelper < OpenNebulaHelper::OneHelper
|
|
62
62
|
end
|
63
63
|
|
64
64
|
if !zone['TEMPLATE/ENDPOINT']
|
65
|
-
return -1, "No Endpoint defined for Zone #{zone_id}"
|
65
|
+
return -1, "No Endpoint defined for Zone #{zone_id}"
|
66
66
|
end
|
67
67
|
|
68
|
-
File.open(ENV['HOME']+"/.one/one_endpoint", 'w'){|f|
|
68
|
+
File.open(ENV['HOME']+"/.one/one_endpoint", 'w'){|f|
|
69
69
|
f.puts zone['TEMPLATE/ENDPOINT']
|
70
70
|
}
|
71
71
|
|
72
|
-
puts "Endpoint changed to \"#{zone['TEMPLATE/ENDPOINT']}\" in " <<
|
72
|
+
puts "Endpoint changed to \"#{zone['TEMPLATE/ENDPOINT']}\" in " <<
|
73
73
|
"#{ENV['HOME']}/.one/one_endpoint"
|
74
74
|
return 0
|
75
75
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opennebula-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.13.80.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- OpenNebula
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: opennebula
|
@@ -16,35 +16,35 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 4.
|
19
|
+
version: 4.13.80.beta1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 4.
|
26
|
+
version: 4.13.80.beta1
|
27
27
|
description: Commands used to talk to OpenNebula
|
28
28
|
email: contact@opennebula.org
|
29
29
|
executables:
|
30
|
-
- oneacl
|
31
|
-
- onecluster
|
32
|
-
- oneflow
|
33
|
-
- oneflow-template
|
34
|
-
- onehost
|
35
|
-
- oneuser
|
36
|
-
- onezone
|
37
30
|
- oneacct
|
31
|
+
- onecluster
|
38
32
|
- onedatastore
|
33
|
+
- oneflow-template
|
39
34
|
- onegroup
|
40
35
|
- onesecgroup
|
41
36
|
- oneshowback
|
42
|
-
-
|
43
|
-
- onevcenter
|
37
|
+
- oneuser
|
44
38
|
- onevdc
|
45
39
|
- onevnet
|
40
|
+
- onezone
|
41
|
+
- oneacl
|
42
|
+
- onehost
|
46
43
|
- oneimage
|
44
|
+
- onevcenter
|
45
|
+
- oneflow
|
47
46
|
- onevm
|
47
|
+
- onetemplate
|
48
48
|
extensions: []
|
49
49
|
extra_rdoc_files: []
|
50
50
|
files:
|
@@ -101,9 +101,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
101
101
|
version: '0'
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- - "
|
104
|
+
- - ">"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
106
|
+
version: 1.3.1
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
109
|
rubygems_version: 2.4.5
|