specinfra 2.3.2 → 2.4.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.rb +6 -0
- data/lib/specinfra/command/cumulus.rb +11 -0
- data/lib/specinfra/command/cumulus/base.rb +2 -0
- data/lib/specinfra/command/cumulus/base/ppa.rb +17 -0
- data/lib/specinfra/command/cumulus/base/service.rb +7 -0
- data/lib/specinfra/helper/detect_os/debian.rb +1 -1
- 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: f15f2a410320a85d6f049c7d0922dfa8c83806f3
|
4
|
+
data.tar.gz: 33afb148321e4fb49ce77189c761e15916d379e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d52d4ac23cb78664a4d7034633c1ec90a2697849978f56f29e234cc30c250a1005229465f751db5ffb53456402f4b3670b5867b483f48a0a9f858e202c767a6b
|
7
|
+
data.tar.gz: 74f0a9c4c17841067bf1a9dc8c1717e3e28597aa3ca3c8e03d4b629381966db3dedcdecb2eb56b51d110d725c317626d484a6b7514c7587a97734a18c6d1e11b
|
data/lib/specinfra/command.rb
CHANGED
@@ -115,6 +115,12 @@ require 'specinfra/command/ubuntu/base'
|
|
115
115
|
require 'specinfra/command/ubuntu/base/ppa'
|
116
116
|
require 'specinfra/command/ubuntu/base/service'
|
117
117
|
|
118
|
+
# Cumulus Networks (inherit Debian)
|
119
|
+
require 'specinfra/command/cumulus'
|
120
|
+
require 'specinfra/command/cumulus/base'
|
121
|
+
require 'specinfra/command/cumulus/base/ppa'
|
122
|
+
require 'specinfra/command/cumulus/base/service'
|
123
|
+
|
118
124
|
# Gentoo (inherit Linux)
|
119
125
|
require 'specinfra/command/gentoo'
|
120
126
|
require 'specinfra/command/gentoo/base'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
class Specinfra::Command::Cumulusnetworks::Base::Ppa < Specinfra::Command::Debian::Base::Ppa
|
2
|
+
class << self
|
3
|
+
def check_exists(package)
|
4
|
+
%Q{find /etc/apt/ -name \*.list | xargs grep -o "deb +http://repo.cumulusnetworks.com/#{to_apt_line_uri(package)}"}
|
5
|
+
end
|
6
|
+
|
7
|
+
def check_is_enabled(package)
|
8
|
+
%Q{find /etc/apt/ -name \*.list | xargs grep -o "^deb +http://repo.cumulusnetworks.com/#{to_apt_line_uri(package)}"}
|
9
|
+
end
|
10
|
+
|
11
|
+
private
|
12
|
+
|
13
|
+
def to_apt_line_uri(repo)
|
14
|
+
escape(repo.gsub(/^ppa:/,''))
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -20,7 +20,7 @@ class Specinfra::Helper::DetectOs::Debian < Specinfra::Helper::DetectOs
|
|
20
20
|
end
|
21
21
|
distro ||= 'debian'
|
22
22
|
release ||= nil
|
23
|
-
{ :family => distro.
|
23
|
+
{ :family => distro.gsub(/\p{^Alnum}/, '').downcase, :release => release }
|
24
24
|
end
|
25
25
|
end
|
26
26
|
end
|
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.4.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: 2014-10-
|
11
|
+
date: 2014-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -175,6 +175,10 @@ files:
|
|
175
175
|
- lib/specinfra/command/base/user.rb
|
176
176
|
- lib/specinfra/command/base/yumrepo.rb
|
177
177
|
- lib/specinfra/command/base/zfs.rb
|
178
|
+
- lib/specinfra/command/cumulus.rb
|
179
|
+
- lib/specinfra/command/cumulus/base.rb
|
180
|
+
- lib/specinfra/command/cumulus/base/ppa.rb
|
181
|
+
- lib/specinfra/command/cumulus/base/service.rb
|
178
182
|
- lib/specinfra/command/darwin.rb
|
179
183
|
- lib/specinfra/command/darwin/base.rb
|
180
184
|
- lib/specinfra/command/darwin/base/file.rb
|