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 CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.1.1
@@ -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
@@ -30,6 +30,11 @@ module UnitHosting
30
30
  return false if r["result"] != "success"
31
31
  r
32
32
  end
33
+
34
+ def networks
35
+ server_call("vmGroup.getNetworks")
36
+ end
37
+
33
38
  end
34
39
  end
35
40
  end
data/unit-hosting.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{unit-hosting}
8
- s.version = "0.0.7"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yoshihiro TAKAHARA"]
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: 17
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
- - 7
10
- version: 0.0.7
8
+ - 1
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yoshihiro TAKAHARA