specinfra 2.3.2 → 2.4.0

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: 5eb25858272bc4ea7f939ae8a48890ebbd3f3d64
4
- data.tar.gz: 771f3f41162356b0d50516c4b7ba0f0a87b39089
3
+ metadata.gz: f15f2a410320a85d6f049c7d0922dfa8c83806f3
4
+ data.tar.gz: 33afb148321e4fb49ce77189c761e15916d379e3
5
5
  SHA512:
6
- metadata.gz: b7b8a137e5513440eb61f2ff0b1991ee73ecdeec9eed9ff6750189277fce796fd5c02ca3a68875aa944c0c79e81c40f55d3c6db055df2b78ebf32e7d849e8a30
7
- data.tar.gz: 2e52d9a953ea9472ea03b04902a41c600eb9f6234f7272e1205a814b2f09d378cd9b6b048cadf695339930e9ddadf29146307cf5028180b3478455688bdd4afd
6
+ metadata.gz: d52d4ac23cb78664a4d7034633c1ec90a2697849978f56f29e234cc30c250a1005229465f751db5ffb53456402f4b3670b5867b483f48a0a9f858e202c767a6b
7
+ data.tar.gz: 74f0a9c4c17841067bf1a9dc8c1717e3e28597aa3ca3c8e03d4b629381966db3dedcdecb2eb56b51d110d725c317626d484a6b7514c7587a97734a18c6d1e11b
@@ -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,11 @@
1
+ class Specinfra::Command::Cumulusnetworks; end
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
@@ -0,0 +1,2 @@
1
+ class Specinfra::Command::Cumulusnetworks::Base < Specinfra::Command::Debian::Base
2
+ end
@@ -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
@@ -0,0 +1,7 @@
1
+ class Specinfra::Command::Cumulusnetworks::Base::Service < Specinfra::Command::Debian::Base::Service
2
+ class << self
3
+ def check_is_running(service)
4
+ "service #{escape(service)} status && service #{escape(service)} status | grep 'running'"
5
+ end
6
+ end
7
+ 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.strip.downcase, :release => release }
23
+ { :family => distro.gsub(/\p{^Alnum}/, '').downcase, :release => release }
24
24
  end
25
25
  end
26
26
  end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.3.2"
2
+ VERSION = "2.4.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.3.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-20 00:00:00.000000000 Z
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