unit-hosting 0.2.0 → 0.2.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/base.rb +1 -1
- data/lib/unit-hosting/cli.rb +6 -0
- data/lib/unit-hosting/commands.rb +3 -3
- data/lib/unit-hosting.rb +3 -0
- data/unit-hosting.gemspec +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
@@ -13,7 +13,7 @@ module UnitHosting
|
|
13
13
|
@instance_id = instance_id
|
14
14
|
@api_key = api_key
|
15
15
|
@server = XMLRPC::Client.
|
16
|
-
new_from_uri("https://
|
16
|
+
new_from_uri("https://cloud.unit-hosting.com/xmlrpc",nil,1000)
|
17
17
|
@server.instance_variable_get(:@http).
|
18
18
|
instance_variable_get(:@ssl_context).
|
19
19
|
instance_variable_set(:@verify_mode, OpenSSL::SSL::VERIFY_NONE)
|
data/lib/unit-hosting/cli.rb
CHANGED
@@ -7,6 +7,12 @@ module UnitHosting
|
|
7
7
|
super
|
8
8
|
@commands = Commands.new
|
9
9
|
end
|
10
|
+
def version
|
11
|
+
File.open(File.join(File.dirname(__FILE__) ,
|
12
|
+
"..","..","VERSION"),"r") { |file|
|
13
|
+
puts file.gets
|
14
|
+
}
|
15
|
+
end
|
10
16
|
def dispatch(cmd,cmd_argv)
|
11
17
|
@commands.send(cmd.sub(/:/,"_"))
|
12
18
|
end
|
@@ -23,7 +23,7 @@ module UnitHosting
|
|
23
23
|
def login
|
24
24
|
opt = OptionParser.new
|
25
25
|
opt.parse!(@command_options)
|
26
|
-
@summery = "Login to https://
|
26
|
+
@summery = "Login to https://cloud.unit-hosting.com ."
|
27
27
|
@banner = ""
|
28
28
|
return opt if @help
|
29
29
|
|
@@ -52,10 +52,10 @@ module UnitHosting
|
|
52
52
|
def logout
|
53
53
|
opt = OptionParser.new
|
54
54
|
opt.parse!(@command_options)
|
55
|
-
@summery = "Logout from https://
|
55
|
+
@summery = "Logout from https://cloud.unit-hosting.com ."
|
56
56
|
@banner = ""
|
57
57
|
return opt if @help
|
58
|
-
Keystorage.delete("
|
58
|
+
Keystorage.delete("unit-hosting")
|
59
59
|
end
|
60
60
|
|
61
61
|
include UnitHosting::Api
|
data/lib/unit-hosting.rb
CHANGED
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: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 1
|
10
|
+
version: 0.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Yoshihiro TAKAHARA
|