conoha 0.0.11 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -21
  3. data/exe/conoha +5 -3
  4. data/lib/conoha/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f6e33b2a50a3499c822087bdae43ec3d11d72601
4
- data.tar.gz: e9a3bdfe441e42fb6a2df05deace4d0cf7c13945
3
+ metadata.gz: c7f87bff07c7ba44f2377d6d2a00909dbe2812cb
4
+ data.tar.gz: 9461e47f5500d51c1669d61d66b0247e9b5bba51
5
5
  SHA512:
6
- metadata.gz: 1386f8ee02eb554868aa1f7710a50299adc08d27a403da26efe356bec8420118376258397ef427ef6b38524a696d516e4159885b08909aeec984fa2671bc093f
7
- data.tar.gz: de462decb4c6bbda886ce1e95301f61f0db34898973877410669e5e4595675eb9ae888efeb26d45383a1508299a3c66909de3db1676714bc2e856f5f1f9e1868
6
+ metadata.gz: f1f42921a72d749004f4d9db1743970f449688c81d3e8c926f673b0e5cadc4de0ca5144f7c866d8b267ce26db90f2e737dbf64bc34c7f728bef35c094cb29a19
7
+ data.tar.gz: 0d18b20f4a72a5a7f45f8532d2036cead48b7153cb4d9adbd9f6581e91a14488c4343275d0f7e6a024395a7d97d8df95eded214d10bd477eabdd9b01d7ffae73
data/README.md CHANGED
@@ -84,6 +84,9 @@ conoha imagedelete fedcba98-7654-3210-fedc-ba9876543210
84
84
 
85
85
  # Create a VPS from a saved image
86
86
  conoha createfromimage fedcba98-7654-3210-fedc-ba9876543210 g-1gb
87
+ conoha createfromimage ubuntu-backup g-1gb
88
+ # You can remove the last argument (default value is "g-1gb")
89
+ conoha createfromimage fedcba98-7654-3210-fedc-ba9876543210
87
90
 
88
91
  # SSH
89
92
  conoha ssh 01234567-89ab-cdef-0123-456789abcdef root # ssh root@ipaddress
@@ -96,6 +99,13 @@ conoha mosh 01234567-89ab-cdef-0123-456789abcdef root # mosh root@ipaddress
96
99
  # Launch Web browser
97
100
  conoha browse 01234567-89ab-cdef-0123-456789abcdef # xdg-open http://ipaddress
98
101
  conoha browse 01234567-89ab-cdef-0123-456789abcdef 3000 # xdg-open http://ipaddress:3000
102
+
103
+ # Dump VPS (shutdown, imagecreate and delete)
104
+ conoha dump 01234567-89ab-cdef-0123-456789abcdef something-backup
105
+ # "something-backup" is the name for "imagecreate"
106
+
107
+ # Restore VPS (just a synonym of "createfromimage")
108
+ conoha restore something-backup
99
109
  ```
100
110
 
101
111
  ## Development
@@ -112,29 +122,9 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/kaosf/
112
122
 
113
123
  ## TODO
114
124
 
115
- ### Features
116
-
117
- - [x] authenticate
118
- - [x] create vps
119
- - [x] show vps list
120
- - [x] check ip address
121
- - [x] delete vps
122
- - [x] boot vps
123
- - [x] shutdown vps
124
- - [x] create image
125
- - [x] create vps from image
126
- - [x] show image list
127
- - [x] delete image
128
- - [ ] public keys
129
- - [x] make as a gem
130
- - [x] remove `curl` command from authenticate
131
125
  - [ ] help message
132
126
  - [ ] subcommand help messages
133
-
134
- ### Code
135
-
136
- - [ ] DRY HTTP codes
137
- - [ ] test (but, how and what should I write?)
127
+ - [ ] CLI support library (e.g. thor)
138
128
 
139
129
  ## License
140
130
 
data/exe/conoha CHANGED
@@ -31,6 +31,8 @@ def image_ref_or_name(str)
31
31
  end
32
32
 
33
33
  case subcommand
34
+ when 'version', '--version', '-v'
35
+ puts ConohaVersion::ITSELF
34
36
  when 'authenticate'
35
37
  Conoha.authenticate!
36
38
  puts 'Succeeded!'
@@ -60,10 +62,10 @@ when 'imagedelete'
60
62
  exit 1 if ARGV.size != 1
61
63
  image_ref = image_ref_or_name ARGV.first
62
64
  puts Conoha.delete_image image_ref
63
- when 'createfromimage'
64
- exit 1 if ARGV.size != 2
65
+ when 'createfromimage', 'restore'
66
+ exit 1 if ARGV.size < 1
65
67
  image_ref = image_ref_or_name ARGV[0]
66
- ram = ARGV[1]
68
+ ram = ARGV[1] || 'g-1gb'
67
69
  puts Conoha.create_from_image image_ref, ram
68
70
  when 'ssh'
69
71
  exit 1 if ARGV.size < 1 || 2 < ARGV.size
@@ -1,3 +1,3 @@
1
1
  module ConohaVersion
2
- ITSELF = "0.0.11"
2
+ ITSELF = "0.1.0"
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.0.11
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2015-11-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler