unit-hosting 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bin/unit-hosting +2 -4
- data/lib/unit-hosting/api/base.rb +2 -4
- data/lib/unit-hosting/api/vm.rb +1 -4
- data/lib/unit-hosting/api/vm_group.rb +1 -10
- data/lib/unit-hosting/api/vm_recipe.rb +1 -2
- data/unit-hosting.gemspec +3 -3
- metadata +49 -49
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.6
|
data/bin/unit-hosting
CHANGED
@@ -1,10 +1,8 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# vim:set fileencoding=utf-8:
|
3
|
-
require 'rubygems'
|
4
|
-
require 'logger'
|
5
3
|
require 'xmlrpc/client'
|
6
|
-
require 'optparse'
|
7
4
|
require 'rexml/document'
|
5
|
+
require 'openssl'
|
8
6
|
|
9
7
|
module UnitHosting
|
10
8
|
module Api
|
@@ -27,7 +25,7 @@ module UnitHosting
|
|
27
25
|
self.new.load(instance_id)
|
28
26
|
end
|
29
27
|
def load(instance_id)
|
30
|
-
load_key(UnitHosting::keypath(instance_id))
|
28
|
+
load_key(UnitHosting::Api::keypath(instance_id))
|
31
29
|
end
|
32
30
|
def load_key(file)
|
33
31
|
File::open(file) do |f|
|
data/lib/unit-hosting/api/vm.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
#
|
2
|
+
# -*- coding: utf-8 -*-
|
3
3
|
require 'unit-hosting/api/base'
|
4
4
|
require 'unit-hosting/api/vm'
|
5
5
|
|
@@ -33,12 +33,3 @@ module UnitHosting
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
36
|
-
|
37
|
-
if $0 == __FILE__
|
38
|
-
pp UnitHosting::VmGroup.load('tumf-sg-10').vm('tumf-vm-107')
|
39
|
-
exit
|
40
|
-
recipe = UnitHosting::VmRecipe.new
|
41
|
-
# recipe.
|
42
|
-
end
|
43
|
-
|
44
|
-
|
data/unit-hosting.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{unit-hosting}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.6"
|
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"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-02-13}
|
13
13
|
s.default_executable = %q{unit-hosting}
|
14
14
|
s.description = %q{This is a command to manage virtual servers on UnitHosting(http://www.unit-hosting.com).}
|
15
15
|
s.email = %q{y.takahara@gmail.com}
|
@@ -44,7 +44,7 @@ Gem::Specification.new do |s|
|
|
44
44
|
s.homepage = %q{http://github.com/tumf/unit-hosting}
|
45
45
|
s.licenses = ["MIT"]
|
46
46
|
s.require_paths = ["lib"]
|
47
|
-
s.rubygems_version = %q{1.
|
47
|
+
s.rubygems_version = %q{1.5.0}
|
48
48
|
s.summary = %q{unit-hosting command line tool}
|
49
49
|
s.test_files = [
|
50
50
|
"test/helper.rb",
|
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: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yoshihiro TAKAHARA
|
@@ -15,13 +15,11 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-02-13 00:00:00 +09:00
|
19
19
|
default_executable: unit-hosting
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
23
|
-
name: mutter
|
24
|
-
version_requirements: &id001 !ruby/object:Gem::Requirement
|
22
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
23
|
none: false
|
26
24
|
requirements:
|
27
25
|
- - ">="
|
@@ -30,12 +28,12 @@ dependencies:
|
|
30
28
|
segments:
|
31
29
|
- 0
|
32
30
|
version: "0"
|
31
|
+
version_requirements: *id001
|
32
|
+
name: mutter
|
33
33
|
prerelease: false
|
34
|
-
requirement: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
34
|
type: :runtime
|
37
|
-
|
38
|
-
|
35
|
+
- !ruby/object:Gem::Dependency
|
36
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
39
37
|
none: false
|
40
38
|
requirements:
|
41
39
|
- - ">"
|
@@ -45,12 +43,12 @@ dependencies:
|
|
45
43
|
- 0
|
46
44
|
- 1
|
47
45
|
version: "0.1"
|
46
|
+
version_requirements: *id002
|
47
|
+
name: keystorage
|
48
48
|
prerelease: false
|
49
|
-
requirement: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
49
|
type: :runtime
|
52
|
-
|
53
|
-
|
50
|
+
- !ruby/object:Gem::Dependency
|
51
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
52
|
none: false
|
55
53
|
requirements:
|
56
54
|
- - ">="
|
@@ -61,12 +59,12 @@ dependencies:
|
|
61
59
|
- 0
|
62
60
|
- 0
|
63
61
|
version: 1.0.0
|
62
|
+
version_requirements: *id003
|
63
|
+
name: mechanize
|
64
64
|
prerelease: false
|
65
|
-
requirement: *id003
|
66
|
-
- !ruby/object:Gem::Dependency
|
67
65
|
type: :runtime
|
68
|
-
|
69
|
-
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
70
68
|
none: false
|
71
69
|
requirements:
|
72
70
|
- - ">"
|
@@ -76,12 +74,12 @@ dependencies:
|
|
76
74
|
- 1
|
77
75
|
- 6
|
78
76
|
version: "1.6"
|
77
|
+
version_requirements: *id004
|
78
|
+
name: highline
|
79
79
|
prerelease: false
|
80
|
-
requirement: *id004
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
80
|
type: :runtime
|
83
|
-
|
84
|
-
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
85
83
|
none: false
|
86
84
|
requirements:
|
87
85
|
- - ">="
|
@@ -92,12 +90,12 @@ dependencies:
|
|
92
90
|
- 9
|
93
91
|
- 0
|
94
92
|
version: 0.9.0
|
93
|
+
version_requirements: *id005
|
94
|
+
name: progressbar
|
95
95
|
prerelease: false
|
96
|
-
requirement: *id005
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
96
|
type: :runtime
|
99
|
-
|
100
|
-
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
101
99
|
none: false
|
102
100
|
requirements:
|
103
101
|
- - ">="
|
@@ -109,12 +107,12 @@ dependencies:
|
|
109
107
|
- 6
|
110
108
|
- 1
|
111
109
|
version: 2.1.6.1
|
110
|
+
version_requirements: *id006
|
111
|
+
name: httpclient
|
112
112
|
prerelease: false
|
113
|
-
requirement: *id006
|
114
|
-
- !ruby/object:Gem::Dependency
|
115
113
|
type: :runtime
|
116
|
-
|
117
|
-
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
118
116
|
none: false
|
119
117
|
requirements:
|
120
118
|
- - ">="
|
@@ -125,12 +123,12 @@ dependencies:
|
|
125
123
|
- 0
|
126
124
|
- 1
|
127
125
|
version: 0.0.1
|
126
|
+
version_requirements: *id007
|
127
|
+
name: command-line-utils
|
128
128
|
prerelease: false
|
129
|
-
|
129
|
+
type: :runtime
|
130
130
|
- !ruby/object:Gem::Dependency
|
131
|
-
|
132
|
-
name: shoulda
|
133
|
-
version_requirements: &id008 !ruby/object:Gem::Requirement
|
131
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
134
132
|
none: false
|
135
133
|
requirements:
|
136
134
|
- - ">="
|
@@ -139,12 +137,12 @@ dependencies:
|
|
139
137
|
segments:
|
140
138
|
- 0
|
141
139
|
version: "0"
|
140
|
+
version_requirements: *id008
|
141
|
+
name: shoulda
|
142
142
|
prerelease: false
|
143
|
-
requirement: *id008
|
144
|
-
- !ruby/object:Gem::Dependency
|
145
143
|
type: :development
|
146
|
-
|
147
|
-
|
144
|
+
- !ruby/object:Gem::Dependency
|
145
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
148
146
|
none: false
|
149
147
|
requirements:
|
150
148
|
- - ~>
|
@@ -155,12 +153,12 @@ dependencies:
|
|
155
153
|
- 0
|
156
154
|
- 0
|
157
155
|
version: 1.0.0
|
156
|
+
version_requirements: *id009
|
157
|
+
name: bundler
|
158
158
|
prerelease: false
|
159
|
-
requirement: *id009
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
159
|
type: :development
|
162
|
-
|
163
|
-
|
160
|
+
- !ruby/object:Gem::Dependency
|
161
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
164
162
|
none: false
|
165
163
|
requirements:
|
166
164
|
- - ~>
|
@@ -171,12 +169,12 @@ dependencies:
|
|
171
169
|
- 5
|
172
170
|
- 2
|
173
171
|
version: 1.5.2
|
172
|
+
version_requirements: *id010
|
173
|
+
name: jeweler
|
174
174
|
prerelease: false
|
175
|
-
requirement: *id010
|
176
|
-
- !ruby/object:Gem::Dependency
|
177
175
|
type: :development
|
178
|
-
|
179
|
-
|
176
|
+
- !ruby/object:Gem::Dependency
|
177
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
180
178
|
none: false
|
181
179
|
requirements:
|
182
180
|
- - ">="
|
@@ -185,8 +183,10 @@ dependencies:
|
|
185
183
|
segments:
|
186
184
|
- 0
|
187
185
|
version: "0"
|
186
|
+
version_requirements: *id011
|
187
|
+
name: rcov
|
188
188
|
prerelease: false
|
189
|
-
|
189
|
+
type: :development
|
190
190
|
description: This is a command to manage virtual servers on UnitHosting(http://www.unit-hosting.com).
|
191
191
|
email: y.takahara@gmail.com
|
192
192
|
executables:
|
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
248
|
requirements: []
|
249
249
|
|
250
250
|
rubyforge_project:
|
251
|
-
rubygems_version: 1.
|
251
|
+
rubygems_version: 1.5.0
|
252
252
|
signing_key:
|
253
253
|
specification_version: 3
|
254
254
|
summary: unit-hosting command line tool
|