pec 0.1.3 → 0.1.4

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: 409aebdf8468165b18f5bf9e130a64c0e8d52e89
4
- data.tar.gz: 79635469bbd61536714e08715cfafe4a9c5ab77e
3
+ metadata.gz: d29ffb28f864e94df722cb8da0c152b670446b07
4
+ data.tar.gz: 6fbfda8c8af3a68833f7b30bd34a5a92dfa48cb5
5
5
  SHA512:
6
- metadata.gz: 683b49175521024e1a3d617678efd3fdc4896a3905c1d25827c6fb0eb2b2be055ba6d971b1468b0572cb0d0f7c0437ee953ff2bec9ef51470ba875b61143c0da
7
- data.tar.gz: 58be8b103ec3b6353d0eba896d31b1c4738dec33a6fc8f0b85f3710c5f3f70a63fd04b942306f9435901ad9349194fbf4b6bfaedbeba025f84dae8abe2ed1380
6
+ metadata.gz: 7079d41c4aac4497a19a4c4e6df31080b57a6e0d98e729c883f95b188ad79b318ff31f4e1304a1f4dfae6164f920c913b3a53495696a3337a675d65f859eb56f
7
+ data.tar.gz: 7afb5135a78958e7b513dbc485fa2d6da50abcb885bd7a25951cabc897d50c9f18e73eba5f30af7ea3fa702e3b44df3f83d845ec44538fe1b88464d589903eb6
data/.gitignore CHANGED
@@ -8,6 +8,6 @@
8
8
  /spec/reports/
9
9
  /tmp/
10
10
  /vendor
11
- *.yaml
11
+ /*.yaml
12
12
  *.sample
13
13
  /user_datas
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in pec.gemspec
4
4
  gemspec
5
- gem 'fog', :git => 'git@github.com:pyama86/fog.git', :branch => 'support-security-groups'
5
+ gem 'fog', :git => 'https://github.com/pyama86/fog.git', :branch => 'support-security-groups'
6
6
  gem 'thor'
7
7
  gem 'ruby-ip'
8
8
  gem 'activesupport'
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Pec
2
2
  [![Build Status](https://travis-ci.org/pyama86/pec.svg?branch=master)](https://travis-ci.org/pyama86/pec)
3
+
3
4
  OpenStackにおいて複数サーバの起動や、
4
5
  DHCPサーバがない状況でのIP自動採番を実現します。
5
6
 
@@ -27,9 +27,7 @@ module Pec
27
27
  case
28
28
  when (net["bootproto"] == "static" && net["ip_address"].nil?)
29
29
  raise(Pec::Errors::Ethernet, "skip! #{name}: ip_address is required by bootproto static")
30
- when (!net["bootproto"] == "static" && !net["bootproto"] == "dhcp")
31
- raise(Pec::Errors::Ethernet, "skip! #{name}: bootproto set the value dhcp or static")
32
- when (!net["bootproto"] == "static" && !net["bootproto"] == "dhcp")
30
+ when (net["bootproto"] != "static" && net["bootproto"] != "dhcp")
33
31
  raise(Pec::Errors::Ethernet, "skip! #{name}: bootproto set the value dhcp or static")
34
32
  end
35
33
  true
@@ -27,7 +27,7 @@ module Pec
27
27
  end
28
28
 
29
29
  def check_require_key(config)
30
- err = %w(image flavor).find {|r| !config[1].key?(r)}
30
+ err = %w(image flavor).find {|r| !config[1].key?(r) || config[1][r].nil? }
31
31
  raise(Pec::Errors::Host,"skip! #{config[0]}: #{err} is required!") unless err.nil?
32
32
  true
33
33
  end
data/lib/pec/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pec
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - kazuhiko yamashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-10 00:00:00.000000000 Z
11
+ date: 2015-06-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: openstac vm booter.
14
14
  email:
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.4.7
71
+ rubygems_version: 2.4.6
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: openstack vm booter.