unit-hosting 0.1.2 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/lib/unit-hosting.rb +7 -0
- data/lib/unit-hosting/agent.rb +0 -1
- data/lib/unit-hosting/api/base.rb +4 -5
- data/lib/unit-hosting/cli.rb +0 -1
- data/lib/unit-hosting/commands.rb +2 -6
- data/unit-hosting.gemspec +4 -3
- metadata +50 -49
data/.document
ADDED
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.4
|
data/lib/unit-hosting.rb
CHANGED
data/lib/unit-hosting/agent.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# vim:set fileencoding=utf-8:
|
3
|
-
require '
|
4
|
-
require 'rexml/document'
|
5
|
-
require 'openssl'
|
6
|
-
|
3
|
+
require 'unit-hosting'
|
7
4
|
module UnitHosting
|
8
5
|
module Api
|
9
6
|
def keypath instance_id
|
@@ -24,7 +21,9 @@ module UnitHosting
|
|
24
21
|
self
|
25
22
|
end
|
26
23
|
def self.load(instance_id)
|
27
|
-
self.new.load(instance_id)
|
24
|
+
obj = self.new.load(instance_id)
|
25
|
+
yield obj if block_given?
|
26
|
+
obj
|
28
27
|
end
|
29
28
|
def load(instance_id)
|
30
29
|
load_key(UnitHosting::Api::keypath(instance_id))
|
data/lib/unit-hosting/cli.rb
CHANGED
@@ -1,16 +1,12 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# -*- coding: utf-8 -*-
|
3
|
-
require "rubygems"
|
4
|
-
require "highline/import"
|
5
|
-
|
6
|
-
require "keystorage"
|
3
|
+
#require "rubygems"
|
7
4
|
|
8
5
|
require "unit-hosting"
|
9
6
|
require "unit-hosting/api"
|
10
7
|
require "unit-hosting/agent"
|
11
8
|
require "unit-hosting/cache"
|
12
|
-
|
13
|
-
require "command-line-utils"
|
9
|
+
|
14
10
|
|
15
11
|
module UnitHosting
|
16
12
|
class Commands < CommandLineUtils::Commands
|
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.1.
|
8
|
+
s.version = "0.1.4"
|
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-03-08}
|
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}
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
"README.rdoc"
|
20
20
|
]
|
21
21
|
s.files = [
|
22
|
+
".document",
|
22
23
|
"Gemfile",
|
23
24
|
"Gemfile.lock",
|
24
25
|
"LICENSE.txt",
|
@@ -44,7 +45,7 @@ Gem::Specification.new do |s|
|
|
44
45
|
s.homepage = %q{http://github.com/tumf/unit-hosting}
|
45
46
|
s.licenses = ["MIT"]
|
46
47
|
s.require_paths = ["lib"]
|
47
|
-
s.rubygems_version = %q{1.
|
48
|
+
s.rubygems_version = %q{1.6.1}
|
48
49
|
s.summary = %q{unit-hosting command line tool}
|
49
50
|
s.test_files = [
|
50
51
|
"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
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yoshihiro TAKAHARA
|
@@ -15,11 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-03-08 00:00:00 +09:00
|
19
19
|
default_executable: unit-hosting
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
|
22
|
+
type: :runtime
|
23
|
+
version_requirements: &id001 !ruby/object:Gem::Requirement
|
23
24
|
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
@@ -28,12 +29,12 @@ dependencies:
|
|
28
29
|
segments:
|
29
30
|
- 0
|
30
31
|
version: "0"
|
31
|
-
|
32
|
-
name: mutter
|
32
|
+
requirement: *id001
|
33
33
|
prerelease: false
|
34
|
-
|
34
|
+
name: mutter
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
|
-
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: &id002 !ruby/object:Gem::Requirement
|
37
38
|
none: false
|
38
39
|
requirements:
|
39
40
|
- - ">"
|
@@ -43,12 +44,12 @@ dependencies:
|
|
43
44
|
- 0
|
44
45
|
- 1
|
45
46
|
version: "0.1"
|
46
|
-
|
47
|
-
name: keystorage
|
47
|
+
requirement: *id002
|
48
48
|
prerelease: false
|
49
|
-
|
49
|
+
name: keystorage
|
50
50
|
- !ruby/object:Gem::Dependency
|
51
|
-
|
51
|
+
type: :runtime
|
52
|
+
version_requirements: &id003 !ruby/object:Gem::Requirement
|
52
53
|
none: false
|
53
54
|
requirements:
|
54
55
|
- - ">="
|
@@ -59,12 +60,12 @@ dependencies:
|
|
59
60
|
- 0
|
60
61
|
- 0
|
61
62
|
version: 1.0.0
|
62
|
-
|
63
|
-
name: mechanize
|
63
|
+
requirement: *id003
|
64
64
|
prerelease: false
|
65
|
-
|
65
|
+
name: mechanize
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
|
-
|
67
|
+
type: :runtime
|
68
|
+
version_requirements: &id004 !ruby/object:Gem::Requirement
|
68
69
|
none: false
|
69
70
|
requirements:
|
70
71
|
- - ">"
|
@@ -74,12 +75,12 @@ dependencies:
|
|
74
75
|
- 1
|
75
76
|
- 6
|
76
77
|
version: "1.6"
|
77
|
-
|
78
|
-
name: highline
|
78
|
+
requirement: *id004
|
79
79
|
prerelease: false
|
80
|
-
|
80
|
+
name: highline
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
|
82
|
+
type: :runtime
|
83
|
+
version_requirements: &id005 !ruby/object:Gem::Requirement
|
83
84
|
none: false
|
84
85
|
requirements:
|
85
86
|
- - ">="
|
@@ -90,12 +91,12 @@ dependencies:
|
|
90
91
|
- 9
|
91
92
|
- 0
|
92
93
|
version: 0.9.0
|
93
|
-
|
94
|
-
name: progressbar
|
94
|
+
requirement: *id005
|
95
95
|
prerelease: false
|
96
|
-
|
96
|
+
name: progressbar
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
|
98
|
+
type: :runtime
|
99
|
+
version_requirements: &id006 !ruby/object:Gem::Requirement
|
99
100
|
none: false
|
100
101
|
requirements:
|
101
102
|
- - ">="
|
@@ -107,12 +108,12 @@ dependencies:
|
|
107
108
|
- 6
|
108
109
|
- 1
|
109
110
|
version: 2.1.6.1
|
110
|
-
|
111
|
-
name: httpclient
|
111
|
+
requirement: *id006
|
112
112
|
prerelease: false
|
113
|
-
|
113
|
+
name: httpclient
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
|
-
|
115
|
+
type: :runtime
|
116
|
+
version_requirements: &id007 !ruby/object:Gem::Requirement
|
116
117
|
none: false
|
117
118
|
requirements:
|
118
119
|
- - ">="
|
@@ -123,12 +124,12 @@ dependencies:
|
|
123
124
|
- 0
|
124
125
|
- 1
|
125
126
|
version: 0.0.1
|
126
|
-
|
127
|
-
name: command-line-utils
|
127
|
+
requirement: *id007
|
128
128
|
prerelease: false
|
129
|
-
|
129
|
+
name: command-line-utils
|
130
130
|
- !ruby/object:Gem::Dependency
|
131
|
-
|
131
|
+
type: :development
|
132
|
+
version_requirements: &id008 !ruby/object:Gem::Requirement
|
132
133
|
none: false
|
133
134
|
requirements:
|
134
135
|
- - ">="
|
@@ -137,12 +138,12 @@ dependencies:
|
|
137
138
|
segments:
|
138
139
|
- 0
|
139
140
|
version: "0"
|
140
|
-
|
141
|
-
name: shoulda
|
141
|
+
requirement: *id008
|
142
142
|
prerelease: false
|
143
|
-
|
143
|
+
name: shoulda
|
144
144
|
- !ruby/object:Gem::Dependency
|
145
|
-
|
145
|
+
type: :development
|
146
|
+
version_requirements: &id009 !ruby/object:Gem::Requirement
|
146
147
|
none: false
|
147
148
|
requirements:
|
148
149
|
- - ~>
|
@@ -153,12 +154,12 @@ dependencies:
|
|
153
154
|
- 0
|
154
155
|
- 0
|
155
156
|
version: 1.0.0
|
156
|
-
|
157
|
-
name: bundler
|
157
|
+
requirement: *id009
|
158
158
|
prerelease: false
|
159
|
-
|
159
|
+
name: bundler
|
160
160
|
- !ruby/object:Gem::Dependency
|
161
|
-
|
161
|
+
type: :development
|
162
|
+
version_requirements: &id010 !ruby/object:Gem::Requirement
|
162
163
|
none: false
|
163
164
|
requirements:
|
164
165
|
- - ~>
|
@@ -169,12 +170,12 @@ dependencies:
|
|
169
170
|
- 5
|
170
171
|
- 2
|
171
172
|
version: 1.5.2
|
172
|
-
|
173
|
-
name: jeweler
|
173
|
+
requirement: *id010
|
174
174
|
prerelease: false
|
175
|
-
|
175
|
+
name: jeweler
|
176
176
|
- !ruby/object:Gem::Dependency
|
177
|
-
|
177
|
+
type: :development
|
178
|
+
version_requirements: &id011 !ruby/object:Gem::Requirement
|
178
179
|
none: false
|
179
180
|
requirements:
|
180
181
|
- - ">="
|
@@ -183,10 +184,9 @@ dependencies:
|
|
183
184
|
segments:
|
184
185
|
- 0
|
185
186
|
version: "0"
|
186
|
-
|
187
|
-
name: rcov
|
187
|
+
requirement: *id011
|
188
188
|
prerelease: false
|
189
|
-
|
189
|
+
name: rcov
|
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:
|
@@ -197,6 +197,7 @@ extra_rdoc_files:
|
|
197
197
|
- LICENSE.txt
|
198
198
|
- README.rdoc
|
199
199
|
files:
|
200
|
+
- .document
|
200
201
|
- Gemfile
|
201
202
|
- Gemfile.lock
|
202
203
|
- LICENSE.txt
|
@@ -248,7 +249,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
248
249
|
requirements: []
|
249
250
|
|
250
251
|
rubyforge_project:
|
251
|
-
rubygems_version: 1.
|
252
|
+
rubygems_version: 1.6.1
|
252
253
|
signing_key:
|
253
254
|
specification_version: 3
|
254
255
|
summary: unit-hosting command line tool
|