conoha 0.2.7 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/conoharant +4 -3
- data/lib/conoha/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ae1a9401c0b36ba74cf147b1c6757b84f392510
|
4
|
+
data.tar.gz: 342a0c6c042a5645c7bb7ee9de5f262800f97b7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f879fd4973a16369e9519b870cd5148e614ff7b4a8fe3a92ea01249835901450105f3f31901ae6a1417bda1df5003e21b6587d55c87beedf99e044b017857a5
|
7
|
+
data.tar.gz: c7ea157269f5472d10699f6a909fbbb5dc945baeb5d802c84888a7a7158ca0176c82992faa0c6d718a31ea3ed998d21027052c3abd6efa6e5cb1b52667f80d61
|
data/exe/conoharant
CHANGED
@@ -14,7 +14,7 @@ if File.exist? '.conoharant/status.yml'
|
|
14
14
|
status = YAML.load(File.open('.conoharant/status.yml').read)
|
15
15
|
else
|
16
16
|
status = {
|
17
|
-
'status' => '
|
17
|
+
'status' => 'nothing',
|
18
18
|
'id' => nil,
|
19
19
|
'images' => [],
|
20
20
|
'latestnumber' => 0,
|
@@ -121,14 +121,15 @@ when 'dump'
|
|
121
121
|
puts '# Error! Retry after 60 seconds...'
|
122
122
|
end
|
123
123
|
puts '# OK!'
|
124
|
-
status['status'] = '
|
124
|
+
status['status'] = 'nothing'
|
125
125
|
status['id'] = nil
|
126
126
|
status['images'] << image_id
|
127
127
|
status['latestnumber'] = latest_number
|
128
128
|
status['image-tags'] << name
|
129
129
|
dump_conoharant_status status
|
130
130
|
when 'restore'
|
131
|
-
|
131
|
+
# TODO: Remove comparing to 'no'.
|
132
|
+
if status['status'] != 'no' && status['status'] != 'nothing'
|
132
133
|
STDERR.puts "A VPS already exists."
|
133
134
|
exit 1
|
134
135
|
end
|
data/lib/conoha/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.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-12-
|
11
|
+
date: 2015-12-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|