specinfra 2.82.0 → 2.82.1

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: 8ee668e2218ac81f2c5923f2b0645ee4ae2785ac
4
- data.tar.gz: d24f04055801591f241943f11d7cbe8840bfa6df
3
+ metadata.gz: 09e9e205df791ebe819a8d94cf519680d189e73b
4
+ data.tar.gz: ccd305fc8c5d714f8f54c7c16bbe767e9c5764bc
5
5
  SHA512:
6
- metadata.gz: bd5b7d2907d5b2c5ff10b234c0773e02419dc2bbdf4bad6ec369ba237e1924a1f76750ae2b6567f9865359033c718d2f5d34a872d5a0f30bbe3046476cd746c5
7
- data.tar.gz: 400bddcdc66e3b018383ea26209ce6b5caa32779d1565de9940f322d1f37923da4b0f6460fcf3c091557b1f2284c5ca5d3275b8aa151433853023af8bc2d8b12
6
+ metadata.gz: dd95a715d3a7c61d42d2289cf178bf6918a0fc166753d18a66270078521d8462a48b26eb5aeb3f1171a0055c560cdb0396a085264737d250ff6b4f4d0d91ac66
7
+ data.tar.gz: 64fa9500c72de6de8a128a7d0ceaff4fd84b130e47305bf2d6938db6c1efb1caaf5b94a33d1642e426aad830c4fc495b78bdfa032324f5720badc58599a1ae7b
@@ -1,7 +1,9 @@
1
1
  class Specinfra::Command::Redhat::Base::Host < Specinfra::Command::Base::Host
2
2
  class << self
3
3
  def create(os_info=nil)
4
- if (os_info || os)[:release].to_i < 7
4
+ release = (os_info || os)[:release].to_i
5
+ # Dirty hack for Amazon Linux
6
+ if release < 7 || release > 2000
5
7
  self
6
8
  else
7
9
  Specinfra::Command::Redhat::V7::Host
@@ -1,7 +1,9 @@
1
1
  class Specinfra::Command::Redhat::Base::Port < Specinfra::Command::Base::Port
2
2
  class << self
3
3
  def create(os_info=nil)
4
- if (os_info || os)[:release].to_i < 7
4
+ release = (os_info || os)[:release].to_i
5
+ # Dirty hack for Amazon Linux
6
+ if release < 7 || release > 2000
5
7
  self
6
8
  else
7
9
  Specinfra::Command::Redhat::V7::Port
@@ -1,7 +1,9 @@
1
1
  class Specinfra::Command::Redhat::Base::Service < Specinfra::Command::Linux::Base::Service
2
2
  class << self
3
3
  def create(os_info=nil)
4
- if (os_info || os)[:release].to_i < 7
4
+ release = (os_info || os)[:release].to_i
5
+ # Dirty hack for Amazon Linux
6
+ if release < 7 || release > 2000
5
7
  self
6
8
  else
7
9
  Specinfra::Command::Redhat::V7::Service
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.82.0"
2
+ VERSION = "2.82.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: specinfra
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.82.0
4
+ version: 2.82.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-01 00:00:00.000000000 Z
11
+ date: 2019-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp