joyent-provisioner 0.3.2 → 1.0.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: 374a06e6f9a44bb73cd79c65803d13bf58fb4974
4
- data.tar.gz: c2c9cca5a9df5c16d712091e91620a80b3d500e5
3
+ metadata.gz: 33d28c32418f1e5abbc65a54d0242185a094ba58
4
+ data.tar.gz: 933399339375a8492b5980f8f14a1966f1870338
5
5
  SHA512:
6
- metadata.gz: dd46f84e49cae55bcb6977b0fae1050a77333a632a5a0a3489f9b37e8075900dfa0dc7654643bb9e86b04718a12c8c7e584411b3ebb7bdded5f965770fc70cc9
7
- data.tar.gz: 0bca1f8ffe0470dc9049ab5955a1f4700b0ab88ab65bfda824beee1060b40896b83127fd9600b941ed4a6cf8de5f8c747e90b33608750a30117620d30e2f4423
6
+ metadata.gz: 0a2a605f1fdaa06960e82747a1451c6aa8b72b4d76246b29e1bc160f085b5b57d2b338c76c8237c04a9cc808434250c53d9bb923871f791e36f2b37792be4ca7
7
+ data.tar.gz: 49feecebd6015a3481e12128a37daea0795e10f566aea5b96a169a9f50956d4dbe1577b8bdc437983123d367467f006745a83c6e27ce21f4e39c692d64ff0520
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  *.gem
2
2
  *.rbc
3
+ .ruby-version
3
4
  .bundle
4
5
  .config
5
6
  .yardoc
data/.travis.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
3
+ - 2.0.0
4
4
  script: "bundle exec rspec"
5
5
  notifications:
6
6
  email: false
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/joyent-provisioner.png)](http://badge.fury.io/rb/joyent-provisioner)
4
4
  [![Build status](https://secure.travis-ci.org/wanelo/joyent-provisioner.png)](http://travis-ci.org/wanelo/joyent-provisioner)
5
+ [![Code Climate](https://codeclimate.com/github/wanelo/joyent-provisioner.png)](https://codeclimate.com/github/wanelo/joyent-provisioner)
5
6
 
6
7
  This gem provides a ruby class and a command line tool to simplify provisioning of clusters of hosts in the
7
8
  cloud environment, based on rules defined in a convenient yml file. It specifically supports Joyent Cloud,
@@ -15,13 +15,14 @@ module Provisioner
15
15
  # example line
16
16
  # 4330e738-2bca-ee10-f9a6-e9a1b3fcfdec vpn001.prod running virtualmachine sdc:jpc:ubuntu-12.04:2.4. g3-highcpu-1.75-kvm 9.12.42.172,10.100.114.217 1.75 GB 75 GB
17
17
  zone, hostname, status, type, image, flavor, ips = server.split(/\s+/).compact
18
+ next if ips.nil?
18
19
  @ips[hostname] = (ips.split(',') || []).first
19
20
  end
20
21
  @ips
21
22
  end
22
23
 
23
24
  def self.server_list
24
- @server_list ||= `knife joyent server list | tail +2`.split("\n")
25
+ @server_list ||= `knife joyent server list | tail -n +2 | grep -v "Total "`.split("\n")
25
26
  end
26
27
  end
27
28
  end
@@ -1,3 +1,3 @@
1
1
  module Provisioner
2
- VERSION = "0.3.2"
2
+ VERSION = "1.0.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joyent-provisioner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Gredeskoul
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-11-13 00:00:00.000000000 Z
13
+ date: 2014-01-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mixlib-cli
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
216
216
  version: '0'
217
217
  requirements: []
218
218
  rubyforge_project:
219
- rubygems_version: 2.0.7
219
+ rubygems_version: 2.0.3
220
220
  signing_key:
221
221
  specification_version: 4
222
222
  summary: Wrapper gem around provisioning clusters of servers on Joyent cloud