unit-hosting 0.0.7 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/unit-hosting/api/vm.rb +10 -0
- data/lib/unit-hosting/api/vm_group.rb +5 -0
- data/unit-hosting.gemspec +1 -1
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.1.1
|
data/lib/unit-hosting/api/vm.rb
CHANGED
@@ -52,6 +52,16 @@ module UnitHosting
|
|
52
52
|
def replicate name=""
|
53
53
|
server_call("vm.replicate",{"display_name" => name})
|
54
54
|
end
|
55
|
+
def plugVif network,device = nil
|
56
|
+
server_call("vm.plugVif",{"network_uuid" => network,"device" => device})
|
57
|
+
end
|
58
|
+
def vifs
|
59
|
+
server_call("vm.getVifs")
|
60
|
+
end
|
61
|
+
def unplugVif vif_uuid
|
62
|
+
server_call("vm.unplugVif",{"vif_uuid" => vif_uuid})
|
63
|
+
end
|
64
|
+
|
55
65
|
end
|
56
66
|
end
|
57
67
|
end
|
data/unit-hosting.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unit-hosting
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
-
|
10
|
-
version: 0.
|
8
|
+
- 1
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yoshihiro TAKAHARA
|