specinfra 2.44.8 → 2.45.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: 67121aeee980bc962f548f5ea46d2c5bc38f5920
4
- data.tar.gz: ad478a373aa00fadb72108ae127a575d794e0491
3
+ metadata.gz: 06c018dd730f80d2cef8eb5eba3a7a40f245c274
4
+ data.tar.gz: 60d3aced300232771352b7eea3397af1e8742c7c
5
5
  SHA512:
6
- metadata.gz: df53c84d7500965005c8857cd18c25afc61780f9d05136efda69134c059e57a41092ea49623c1c609998ed78e0ce8893102f741290a7c777c202d354269e5cc8
7
- data.tar.gz: 8566a26c5cbc999a43dc6f780fd173fa584d5a27a68be14e400d42da7375d1361d24dea67b8de6b7276e210576ccc14a03df4f2627b398a4855a96250c16079e
6
+ metadata.gz: 38dab03863445a1176e0a1dac2356e17a6b97bc91267f902872d452697ba241db2d9f45037c14d1172e124b028a0aecb26b56bd268d26efe9604385f22ef793d
7
+ data.tar.gz: 8a93046edf17402d9a54d565c13ee3f354ed0bbe9d86ec0c048576979f49f9ad18fbd9d9556eda829f8f01f19edf553e01cfc0252ac7f84207e6ec66ddb11249
@@ -8,6 +8,10 @@ module Specinfra
8
8
  @instance ||= self.new
9
9
  end
10
10
 
11
+ def self.clear
12
+ @instance = nil
13
+ end
14
+
11
15
  def initialize(config = {})
12
16
  @config = config
13
17
  end
@@ -1,3 +1,4 @@
1
+ class Specinfra::Command::Cumuluslinux; end
1
2
  class Specinfra::Command::Cumulusnetworks; end
2
3
 
3
4
 
@@ -1,2 +1,6 @@
1
- class Specinfra::Command::Cumulusnetworks::Base < Specinfra::Command::Debian::Base
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::Cumulusnetworks::Base::Ppa < Specinfra::Command::Debian::Base::Ppa
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::Cumulusnetworks::Base::Service < Specinfra::Command::Debian::Base::Service
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
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.44.8"
2
+ VERSION = "2.45.0"
3
3
  end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'cumuluslinux'
5
+
6
+ describe get_command(:check_ppa_exists, 'git') do
7
+ it { should eq 'find /etc/apt/ -name *.list | xargs grep -o "deb +http://repo.cumulusnetworks.com/git"' }
8
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ property[:os] = nil
4
+ set :os, :family => 'cumulusnetworks'
5
+
6
+ describe get_command(:check_ppa_exists, 'git') do
7
+ it { should eq 'find /etc/apt/ -name *.list | xargs grep -o "deb +http://repo.cumulusnetworks.com/git"' }
8
+ end
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.44.8
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