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 +4 -4
- data/lib/specinfra/command/coreos/base/service.rb +5 -0
- data/lib/specinfra/command/coreos/base.rb +2 -0
- data/lib/specinfra/command/coreos.rb +1 -0
- data/lib/specinfra/command.rb +5 -0
- data/lib/specinfra/helper/detect_os/coreos.rb +18 -0
- data/lib/specinfra/helper/detect_os.rb +1 -0
- data/lib/specinfra/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f7e223c0794b50fa5010da03b2a2c6ecff851de
|
4
|
+
data.tar.gz: ac8ca515bf77736b35ec5cc172a7795183841320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ca38dd115aa29207a1a72c5457e0274f082ed6695be455ef6c953bb02eb5495bddf5e7ec16416648f550c0d445390f485e7980c3aba30445a6c4e8db8e44262
|
7
|
+
data.tar.gz: 371b735674e47cf17708521e12bc9cc1cfcb60e7e9a40195c073c8111403d0a14cdc545ba33f5d926c896429abe4d8c93df68a6ae70af7a0cca3fc755277019d
|
@@ -0,0 +1 @@
|
|
1
|
+
class Specinfra::Command::Coreos; end
|
data/lib/specinfra/command.rb
CHANGED
@@ -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'
|
data/lib/specinfra/version.rb
CHANGED
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.
|
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-
|
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
|