specinfra 2.44.8 → 2.45.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/backend/base.rb +4 -0
- data/lib/specinfra/command/cumulus.rb +1 -0
- data/lib/specinfra/command/cumulus/base.rb +5 -1
- data/lib/specinfra/command/cumulus/base/ppa.rb +4 -1
- data/lib/specinfra/command/cumulus/base/service.rb +4 -1
- data/lib/specinfra/command/darwin/base/package.rb +4 -0
- data/lib/specinfra/version.rb +1 -1
- data/spec/command/cumulus/ppa_cumuluslinux_spec.rb +8 -0
- data/spec/command/cumulus/ppa_cumulusnetworks_spec.rb +8 -0
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06c018dd730f80d2cef8eb5eba3a7a40f245c274
|
4
|
+
data.tar.gz: 60d3aced300232771352b7eea3397af1e8742c7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38dab03863445a1176e0a1dac2356e17a6b97bc91267f902872d452697ba241db2d9f45037c14d1172e124b028a0aecb26b56bd268d26efe9604385f22ef793d
|
7
|
+
data.tar.gz: 8a93046edf17402d9a54d565c13ee3f354ed0bbe9d86ec0c048576979f49f9ad18fbd9d9556eda829f8f01f19edf553e01cfc0252ac7f84207e6ec66ddb11249
|
@@ -1,2 +1,6 @@
|
|
1
|
-
class Specinfra::Command::
|
1
|
+
class Specinfra::Command::Cumuluslinux::Base < Specinfra::Command::Debian::Base
|
2
2
|
end
|
3
|
+
|
4
|
+
class Specinfra::Command::Cumulusnetworks::Base < Specinfra::Command::Cumuluslinux::Base
|
5
|
+
end
|
6
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
class Specinfra::Command::
|
1
|
+
class Specinfra::Command::Cumuluslinux::Base::Ppa < Specinfra::Command::Debian::Base::Ppa
|
2
2
|
class << self
|
3
3
|
def check_exists(package)
|
4
4
|
%Q{find /etc/apt/ -name \*.list | xargs grep -o "deb +http://repo.cumulusnetworks.com/#{to_apt_line_uri(package)}"}
|
@@ -15,3 +15,6 @@ class Specinfra::Command::Cumulusnetworks::Base::Ppa < Specinfra::Command::Debia
|
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
18
|
+
|
19
|
+
class Specinfra::Command::Cumulusnetworks::Base::Ppa < Specinfra::Command::Cumuluslinux::Base::Ppa
|
20
|
+
end
|
@@ -1,7 +1,10 @@
|
|
1
|
-
class Specinfra::Command::
|
1
|
+
class Specinfra::Command::Cumuluslinux::Base::Service < Specinfra::Command::Debian::Base::Service
|
2
2
|
class << self
|
3
3
|
def check_is_running(service)
|
4
4
|
"service #{escape(service)} status && service #{escape(service)} status | grep 'running'"
|
5
5
|
end
|
6
6
|
end
|
7
7
|
end
|
8
|
+
|
9
|
+
class Specinfra::Command::Cumulusnetworks::Base::Service < Specinfra::Command::Cumuluslinux::Base::Service
|
10
|
+
end
|
@@ -33,6 +33,10 @@ class Specinfra::Command::Darwin::Base::Package < Specinfra::Command::Base::Pack
|
|
33
33
|
cmd = "brew install #{option} '#{package}'"
|
34
34
|
end
|
35
35
|
|
36
|
+
def remove(package, option='')
|
37
|
+
cmd = "brew uninstall #{option} '#{package}'"
|
38
|
+
end
|
39
|
+
|
36
40
|
def get_version(package, opts=nil)
|
37
41
|
%Q[ls -1 "$(brew --prefix)/Cellar/#{package}/" | tail -1]
|
38
42
|
end
|
data/lib/specinfra/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: specinfra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.45.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
@@ -476,6 +476,8 @@ files:
|
|
476
476
|
- spec/command/base/mail_alias.rb
|
477
477
|
- spec/command/base/package_spec.rb
|
478
478
|
- spec/command/base/user_spec.rb
|
479
|
+
- spec/command/cumulus/ppa_cumuluslinux_spec.rb
|
480
|
+
- spec/command/cumulus/ppa_cumulusnetworks_spec.rb
|
479
481
|
- spec/command/darwin/file_spec.rb
|
480
482
|
- spec/command/darwin/host_spec.rb
|
481
483
|
- spec/command/darwin/interface_spec.rb
|
@@ -580,6 +582,8 @@ test_files:
|
|
580
582
|
- spec/command/base/mail_alias.rb
|
581
583
|
- spec/command/base/package_spec.rb
|
582
584
|
- spec/command/base/user_spec.rb
|
585
|
+
- spec/command/cumulus/ppa_cumuluslinux_spec.rb
|
586
|
+
- spec/command/cumulus/ppa_cumulusnetworks_spec.rb
|
583
587
|
- spec/command/darwin/file_spec.rb
|
584
588
|
- spec/command/darwin/host_spec.rb
|
585
589
|
- spec/command/darwin/interface_spec.rb
|