specinfra 2.19.6 → 2.20.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: 8f29f73a7d3e2bd5f240753b362ffea702167d56
4
- data.tar.gz: 6c4d00cf810779865bcb788bb2827d14584d9740
3
+ metadata.gz: 4f7e223c0794b50fa5010da03b2a2c6ecff851de
4
+ data.tar.gz: ac8ca515bf77736b35ec5cc172a7795183841320
5
5
  SHA512:
6
- metadata.gz: 75d9ef3a96ca892ab73a51a23aaa91201e4d1f76143e04869ab708548ffe23e05dc962d73a96988e058e1469f7e931c6deca4cf8e7284d9d3ac5604bb5b128c1
7
- data.tar.gz: 562e104cf4eaa9559d2feaaa0e74945f255709fdc6d4ac87d65b5742145546459ea92cfb976cd3c8a7c47e701cc5ebf350ee71d16a730a869249b9f0fd44ab39
6
+ metadata.gz: 3ca38dd115aa29207a1a72c5457e0274f082ed6695be455ef6c953bb02eb5495bddf5e7ec16416648f550c0d445390f485e7980c3aba30445a6c4e8db8e44262
7
+ data.tar.gz: 371b735674e47cf17708521e12bc9cc1cfcb60e7e9a40195c073c8111403d0a14cdc545ba33f5d926c896429abe4d8c93df68a6ae70af7a0cca3fc755277019d
@@ -0,0 +1,5 @@
1
+ class Specinfra::Command::Coreos::Base::Service < Specinfra::Command::Linux::Base::Service
2
+ class << self
3
+ include Specinfra::Command::Module::Systemd
4
+ end
5
+ end
@@ -0,0 +1,2 @@
1
+ class Specinfra::Command::Coreos::Base < Specinfra::Command::Linux::Base
2
+ end
@@ -0,0 +1 @@
1
+ class Specinfra::Command::Coreos; end
@@ -112,6 +112,11 @@ require 'specinfra/command/arch/base/file'
112
112
  require 'specinfra/command/arch/base/service'
113
113
  require 'specinfra/command/arch/base/package'
114
114
 
115
+ # CoreOS (inherit Linux)
116
+ require 'specinfra/command/coreos'
117
+ require 'specinfra/command/coreos/base'
118
+ require 'specinfra/command/coreos/base/service'
119
+
115
120
  # Darwin (inherit Base)
116
121
  require 'specinfra/command/darwin'
117
122
  require 'specinfra/command/darwin/base'
@@ -0,0 +1,18 @@
1
+ class Specinfra::Helper::DetectOs::Coreos < Specinfra::Helper::DetectOs
2
+ def self.detect
3
+ if run_command('ls /etc/coreos/update.conf').success?
4
+ distro = nil
5
+ release = nil
6
+ lsb_release = run_command("cat /etc/lsb-release")
7
+ if lsb_release.success?
8
+ lsb_release.stdout.each_line do |line|
9
+ distro = line.split('=').last.strip if line =~ /^DISTRIB_ID=/
10
+ release = line.split('=').last.strip if line =~ /^DISTRIB_RELEASE=/
11
+ end
12
+ end
13
+ distro ||= 'coreos'
14
+ release ||= nil
15
+ { :family => distro.gsub(/[^[:alnum:]]/, '').downcase, :release => release }
16
+ end
17
+ end
18
+ end
@@ -9,6 +9,7 @@ end
9
9
  require 'specinfra/helper/detect_os/aix'
10
10
  require 'specinfra/helper/detect_os/alpine'
11
11
  require 'specinfra/helper/detect_os/arch'
12
+ require 'specinfra/helper/detect_os/coreos'
12
13
  require 'specinfra/helper/detect_os/darwin'
13
14
  require 'specinfra/helper/detect_os/debian'
14
15
  require 'specinfra/helper/detect_os/esxi'
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.19.6"
2
+ VERSION = "2.20.0"
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.19.6
4
+ version: 2.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-18 00:00:00.000000000 Z
11
+ date: 2015-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -184,6 +184,9 @@ files:
184
184
  - lib/specinfra/command/base/user.rb
185
185
  - lib/specinfra/command/base/yumrepo.rb
186
186
  - lib/specinfra/command/base/zfs.rb
187
+ - lib/specinfra/command/coreos.rb
188
+ - lib/specinfra/command/coreos/base.rb
189
+ - lib/specinfra/command/coreos/base/service.rb
187
190
  - lib/specinfra/command/cumulus.rb
188
191
  - lib/specinfra/command/cumulus/base.rb
189
192
  - lib/specinfra/command/cumulus/base/ppa.rb
@@ -333,6 +336,7 @@ files:
333
336
  - lib/specinfra/helper/detect_os/aix.rb
334
337
  - lib/specinfra/helper/detect_os/alpine.rb
335
338
  - lib/specinfra/helper/detect_os/arch.rb
339
+ - lib/specinfra/helper/detect_os/coreos.rb
336
340
  - lib/specinfra/helper/detect_os/darwin.rb
337
341
  - lib/specinfra/helper/detect_os/debian.rb
338
342
  - lib/specinfra/helper/detect_os/esxi.rb