conoha 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 00753443a76f4e2244c5a7ed63f9f2b74c761572
4
- data.tar.gz: f8f05d80a57b6ae13961bee0711ec0a79b551be7
3
+ metadata.gz: 8a2019b613a9cd10285fbe8b0fccc58e60b5837e
4
+ data.tar.gz: 4cce4c05b282c9d6af7c1982e7c9920d20f6ba69
5
5
  SHA512:
6
- metadata.gz: d189334c9f13d70c3115bd0c80d60b574249d584b8695320c256604d40f4e154e164a18704e66e4f7574f87974561d4da92a4dc4af9e616bc08965b8e167e3f1
7
- data.tar.gz: 82171dcba2750cd79b9063e982b0aebc69c27a8748422abfc4db98f95623dfe3809f35f2b048c036076c1f2cc7bf5c5caa27b4c0aa12685e89959576594ecfdb
6
+ metadata.gz: 169f93d419f82a5d0ed2235baa26d7b4095660ad0ba55baad68251d28eaa61536643e78df7dbfb9f5bd0a9d71f9d73d92fe849273c9e7db5a4a1d9d03994303a
7
+ data.tar.gz: bfa17b254d1afc956f795de9740b3c38a9a300b706cda366d5bd7be0c44df96b33edd9477fab48eafca11228ce83df3105aa78f7295016805cdbd2fdd7acd89d
data/README.md CHANGED
@@ -62,6 +62,12 @@ conoha create centos72 g-2gb
62
62
  conoha create arch g-4gb
63
63
  conoha create ubuntu g-1gb nametagasyoulike
64
64
 
65
+ # Create VPS 512MB RAM
66
+ # You must use the image tag with "-20gb"
67
+ conoha create centos72-20gb g-512mb
68
+ conoha create arch-20gb g-512mb
69
+ conoha create ubuntu-20gb g-512mb nametagasyoulike
70
+
65
71
  # You can check VPS UUIDs
66
72
  conoha vpslist
67
73
 
@@ -173,6 +179,7 @@ conoharant ssh username
173
179
  conoharant mosh
174
180
  conoharant mosh username
175
181
  conoharant sftp
182
+ conoharant sftp username
176
183
  conoharant dump
177
184
  conoharant restore
178
185
  conoharant clean
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ["lib"]
21
21
 
22
22
  spec.add_development_dependency "bundler", "~> 1.11"
23
- spec.add_development_dependency "rake", "~> 11.1"
23
+ spec.add_development_dependency "rake", "~> 11.3"
24
24
  spec.add_development_dependency "test-unit", "~> 3.1"
25
25
  spec.add_development_dependency "test-unit-notify", "~> 1.0"
26
26
  spec.add_development_dependency "guard", "~> 2.13"
@@ -15,7 +15,7 @@ unless File.exist? 'Conoharantfile'
15
15
  File.open('Conoharantfile', 'w') do |f|
16
16
  f.write(<<EOF
17
17
  os: centos72
18
- # os: fedora23
18
+ # os: fedora24
19
19
  # os: centos67
20
20
  # os: debian
21
21
  # os: ubuntu
@@ -24,6 +24,15 @@ ram: g-1gb
24
24
  # ram: g-2gb
25
25
  # ram: g-4gb
26
26
  # ram: g-8gb
27
+
28
+ # os: centos72-20gb
29
+ # os: fedora24-20gb
30
+ # os: centos67-20gb
31
+ # os: debian-20gb
32
+ # os: ubuntu-20gb
33
+ # os: arch-20gb
34
+ # ram: g-512mb
35
+
27
36
  tagprefix: randomname#{SecureRandom.uuid[0, 8]}
28
37
  EOF
29
38
  )
@@ -239,7 +248,8 @@ when 'browse'
239
248
  when 'sftp'
240
249
  server_id = status['id']
241
250
  ipaddress = ipv4(Conoha.ip_address_of(server_id))
242
- command = "sftp #{ipaddress}"
251
+ user = ARGV[1].nil? ? '' : "#{ARGV[1]}@"
252
+ command = "sftp #{user}#{ipaddress}"
243
253
  puts command
244
254
  system command
245
255
  when 'ipaddress'
@@ -293,13 +293,14 @@ EOS
293
293
 
294
294
  def self.flavor_ref(ram)
295
295
  dictionary = {
296
- 'g-1gb' => '7eea7469-0d85-4f82-8050-6ae742394681',
297
- 'g-2gb' => '294639c7-72ba-43a5-8ff2-513c8995b869',
298
- 'g-4gb' => '62e8fb4b-6a26-46cd-be13-e5bbf5614d15',
299
- 'g-8gb' => '965affd4-d9e8-4ffb-b9a9-624d63e2d83f',
300
- 'g-16gb' => '3aa001cd-95b6-46c9-a91e-e62d6f7f06a3',
301
- 'g-32gb' => 'a20905c6-3733-46c4-81cc-458c7dca1bae',
302
- 'g-64gb' => 'c2a97b05-1b4b-4038-bbcb-343201659279',
296
+ 'g-512mb' => 'd92b02ce-9a4f-4544-8d7f-ae8380bc08e7',
297
+ 'g-1gb' => '7eea7469-0d85-4f82-8050-6ae742394681',
298
+ 'g-2gb' => '294639c7-72ba-43a5-8ff2-513c8995b869',
299
+ 'g-4gb' => '62e8fb4b-6a26-46cd-be13-e5bbf5614d15',
300
+ 'g-8gb' => '965affd4-d9e8-4ffb-b9a9-624d63e2d83f',
301
+ 'g-16gb' => '3aa001cd-95b6-46c9-a91e-e62d6f7f06a3',
302
+ 'g-32gb' => 'a20905c6-3733-46c4-81cc-458c7dca1bae',
303
+ 'g-64gb' => 'c2a97b05-1b4b-4038-bbcb-343201659279',
303
304
  }
304
305
  if dictionary.keys.include? ram
305
306
  dictionary[ram]
@@ -70,15 +70,30 @@ def image_tag_dictionary(os)
70
70
  'ubuntu16' => 'vmi-ubuntu-16.04-amd64', # Ubuntu 16.04 amd64
71
71
  'ubuntu14' => 'vmi-ubuntu-14.04-amd64', # Ubuntu 14.04 amd64
72
72
  'debian' => 'vmi-debian-8-amd64', # Debian 8 amd64
73
- 'fedora23' => 'vmi-fedora-23-amd64', # Fedora 23 amd64
73
+ 'fedora24' => 'vmi-fedora-24-amd64', # Fedora 24 amd64
74
74
  'centos67' => 'vmi-centos-6.7-amd64', # CentOS 6.7
75
75
  'centos72' => 'vmi-centos-7.2-amd64', # CentOS 7.2
76
76
  'arch' => 'vmi-arch-amd64', # Arch
77
77
  'opensuse' => 'vmi-opensuse-42.1-amd64', # openSUSE
78
- 'openbsd' => 'vmi-openbsd-5.8-amd64', # OpenBSD
78
+ 'openbsd' => 'vmi-openbsd-6.0-amd64', # OpenBSD
79
79
  'netbsd' => 'vmi-netbsd-7.0-amd64', # NetBSD
80
- 'freebsd' => 'vmi-freebsd-10.1-x86_64', # FreeBSD
80
+ 'freebsd' => 'vmi-freebsd-10.3-x86_64', # FreeBSD
81
81
  'docker' => 'vmi-docker-1.12-ubuntu-16.04', # Docker on Ubuntu 16.04
82
+
83
+ # 20GB storage for 512MB RAM
84
+ 'ubuntu-20gb' => 'vmi-ubuntu-16.04-amd64-20gb',
85
+ 'ubuntu16-20gb' => 'vmi-ubuntu-16.04-amd64-20gb',
86
+ 'ubuntu14-20gb' => 'vmi-ubuntu-14.04-amd64-20gb',
87
+ 'debian-20gb' => 'vmi-debian-8-amd64-20gb',
88
+ 'fedora24-20gb' => 'vmi-fedora-24-amd64-20gb',
89
+ 'centos67-20gb' => 'vmi-centos-6.7-amd64-20gb',
90
+ 'centos72-20gb' => 'vmi-centos-7.2-amd64-20gb',
91
+ 'arch-20gb' => 'vmi-arch-amd64-20gb',
92
+ 'opensuse-20gb' => 'vmi-opensuse-42.1-amd64-20gb',
93
+ 'openbsd-20gb' => 'vmi-openbsd-6.0-amd64-20gb',
94
+ 'netbsd-20gb' => 'vmi-netbsd-7.0-amd64-20gb',
95
+ 'freebsd-20gb' => 'vmi-freebsd-10.3-amd64-20gb',
96
+ 'docker-20gb' => 'vmi-docker-1.12-ubuntu-16.04-20gb',
82
97
  }
83
98
 
84
99
  if dictionary.keys.include? os
@@ -1,3 +1,3 @@
1
1
  module ConohaVersion
2
- ITSELF = "0.9.5"
2
+ ITSELF = "0.9.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conoha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-11 00:00:00.000000000 Z
11
+ date: 2016-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '11.1'
33
+ version: '11.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '11.1'
40
+ version: '11.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: test-unit
43
43
  requirement: !ruby/object:Gem::Requirement