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 CHANGED
@@ -1 +1 @@
1
- 0.2.0
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://www.unit-hosting.com/xmlrpc",nil,1000)
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)
@@ -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://www.unit-hosting.com ."
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://www.unit-hosting.com ."
55
+ @summery = "Logout from https://cloud.unit-hosting.com ."
56
56
  @banner = ""
57
57
  return opt if @help
58
- Keystorage.delete("bookscan")
58
+ Keystorage.delete("unit-hosting")
59
59
  end
60
60
 
61
61
  include UnitHosting::Api
data/lib/unit-hosting.rb CHANGED
@@ -1,3 +1,6 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+
1
4
  require "highline/import"
2
5
  require "keystorage"
3
6
  require 'command-line-utils'
data/unit-hosting.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "unit-hosting"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.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: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 0
10
- version: 0.2.0
9
+ - 1
10
+ version: 0.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yoshihiro TAKAHARA