conoha 0.5.1 → 0.6.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46708908b6eeac4c70eebc88ad7a782c65e96661
4
- data.tar.gz: 82416343bdaa05d7cb50153d1d487adc8372642a
3
+ metadata.gz: 58af4ba31455d8ed889f00a28ac75a73bebb44fd
4
+ data.tar.gz: 4076de65213fd18221b7aa8b8e89ab4040c3e4b9
5
5
  SHA512:
6
- metadata.gz: 2ba59167c3c047cf5bf56bb4767069db39daf4c5f3df7dc08c917dd26a9a18bc7f3c5ab898cd9ce9e83498c0aa05fbbf9d0c143eadf9d269aaf481ffaaabd6c1
7
- data.tar.gz: df0b514414319282a8e3fe6edd1f387d33307f5414f8d10a54d04de26a9925ede87fa8abceed7a15b6c4f9f4520cc903fd1f45a4d7aa2f146092ca2393e7c69d
6
+ metadata.gz: 8e5d97aaf9e83c26c1d5d848dd4fd4c248229476bfa5cce2692afdf8992b548c06e4121e8073f5b9c24b3457da083b3c92df57d9f6bc32bf36a3798ae95b5160
7
+ data.tar.gz: 50eac0ed9d968723bf7fc4b63e09a0fc846f85726db0c755388a09642de86f1f6630ddde3053dc1e94a5a5e8ab1eec6a2c325a31cf4358fdd30e6a01954f528d
data/README.md CHANGED
@@ -146,6 +146,7 @@ You should ignore `.conoharant` directory if you manage `Conoharantfile` with VC
146
146
  ### Simple usage
147
147
 
148
148
  ```sh
149
+ conoharant init
149
150
  conoharant up
150
151
  conoharant status
151
152
  conoharant ssh
@@ -1,8 +1,27 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  unless File.exist? 'Conoharantfile'
4
- STDERR.puts "\"Conoharantfile\" doesn't exist."
5
- exit 1
4
+ if ARGV[0] == 'init'
5
+ require 'securerandom'
6
+ File.open('Conoharantfile', 'w') do |f|
7
+ f.write(<<EOF
8
+ os: centos72
9
+ # os: centos67
10
+ # os: ubuntu
11
+ # os: arch
12
+ ram: g-1gb
13
+ # ram: g-2gb
14
+ # ram: g-4gb
15
+ # ram: g-8gb
16
+ tagprefix: randomname#{SecureRandom.uuid[0, 8]}
17
+ EOF
18
+ )
19
+ end
20
+ exit 0
21
+ else
22
+ STDERR.puts "\"Conoharantfile\" doesn't exist."
23
+ exit 1
24
+ end
6
25
  end
7
26
  unless Dir.exist? '.conoharant'
8
27
  Dir.mkdir '.conoharant'
@@ -1,3 +1,3 @@
1
1
  module ConohaVersion
2
- ITSELF = "0.5.1"
2
+ ITSELF = "0.6.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.5.1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ka
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-19 00:00:00.000000000 Z
11
+ date: 2016-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler