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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dee48c95b112698cf3cdf4493ffb041f03f2f34b
4
- data.tar.gz: 39b761ea243fc49d5b4b4aec7a4a1b5183bc08b3
3
+ metadata.gz: 7ae1a9401c0b36ba74cf147b1c6757b84f392510
4
+ data.tar.gz: 342a0c6c042a5645c7bb7ee9de5f262800f97b7c
5
5
  SHA512:
6
- metadata.gz: 136d87e20fedd70567339f7b221dc942fd97cd5f7d99fb60e6429c18436a853a2d5d966dc8896c7edf737fb52990af7e2681d30f360e71f8f8e23c0053fd2524
7
- data.tar.gz: 4a22ba340d6a20956730b022e9f651ca9b3a0b4248676473f932a6386569b30db2f57d867c86a330e7e2ba112007bb1277264699d8444b390271e0fd70660e6e
6
+ metadata.gz: 6f879fd4973a16369e9519b870cd5148e614ff7b4a8fe3a92ea01249835901450105f3f31901ae6a1417bda1df5003e21b6587d55c87beedf99e044b017857a5
7
+ data.tar.gz: c7ea157269f5472d10699f6a909fbbb5dc945baeb5d802c84888a7a7158ca0176c82992faa0c6d718a31ea3ed998d21027052c3abd6efa6e5cb1b52667f80d61
@@ -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' => 'no',
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'] = 'no'
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
- if status['status'] != 'no'
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
@@ -1,3 +1,3 @@
1
1
  module ConohaVersion
2
- ITSELF = "0.2.7"
2
+ ITSELF = "0.3.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.2.7
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-14 00:00:00.000000000 Z
11
+ date: 2015-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler