specinfra 2.10.0 → 2.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2db76d3a3d1d0f589c9f89e58bfa3bcff0361a95
4
- data.tar.gz: f7af0c635ba6f7b2568b754678a74390f6b2ea4f
3
+ metadata.gz: 752878a5e1f9c4c66e0e694a35828a41c053bb3b
4
+ data.tar.gz: f6810917014d94fd00fda3eb729588b170cef32f
5
5
  SHA512:
6
- metadata.gz: a6d57502a459343c5bc4e17aa15ba5bf30e8a6b1f2553de17e39240b3ddde314aa0fc290913b54a6bcda401c48973308095217f7af44d3611fa2206b394ff0b0
7
- data.tar.gz: 0e7918e264ed293119ad4c4266af36121edc780267844fd7e084d928c5bbdac43bff948c44e93ad48bf66b48879ca476eada472fe10827f76278d0a960d5c625
6
+ metadata.gz: efc924c21e4b6f7a0a890637b7b8024a01916a283e5a50125f5c66a13fcfa16b5bdc7dffd4bb293db6e056c6a647501528a420991a423b0856d2cd49f6a72f25
7
+ data.tar.gz: 680480acdbb6bc4b9de4f38770cffecad7839efc3559dbf49b5199daf90f701e4624ee1a60453fcc1c0cc84bb78add357b3e75a90dd5ab28c3338b085494c203
@@ -167,6 +167,7 @@ require 'specinfra/command/freebsd/v10/package'
167
167
  # OpenBSD (inherit Base)
168
168
  require 'specinfra/command/openbsd'
169
169
  require 'specinfra/command/openbsd/base'
170
+ require 'specinfra/command/openbsd/base/bridge'
170
171
  require 'specinfra/command/openbsd/base/file'
171
172
  require 'specinfra/command/openbsd/base/interface'
172
173
  require 'specinfra/command/openbsd/base/mail_alias'
@@ -20,11 +20,11 @@ class Specinfra::Command::Darwin::Base::Package < Specinfra::Command::Base::Pack
20
20
 
21
21
  def install(package, version=nil, option='')
22
22
  # Homebrew doesn't support to install specific version.
23
- cmd = "brew install #{option} '#{package}'"
23
+ cmd = "/usr/local/bin/brew install #{option} '#{package}'"
24
24
  end
25
25
 
26
26
  def get_version(package, opts=nil)
27
- "basename $(brew info #{package} | grep '\*$' | awk '{print $1}')"
27
+ "basename $(/usr/local/bin/brew info #{package} | grep '\*$' | awk '{print $1}')"
28
28
  end
29
29
  end
30
30
  end
@@ -0,0 +1,11 @@
1
+ class Specinfra::Command::Openbsd::Base::Bridge < Specinfra::Command::Base::Bridge
2
+ class << self
3
+ def check_exists(name)
4
+ "ifconfig #{name}"
5
+ end
6
+
7
+ def check_has_interface(name, interface)
8
+ "ifconfig #{name} | grep -o #{interface}"
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.10.0"
2
+ VERSION = "2.10.1"
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.10.0
4
+ version: 2.10.1
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-12-05 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-ssh
@@ -234,6 +234,7 @@ files:
234
234
  - lib/specinfra/command/nixos/base/service.rb
235
235
  - lib/specinfra/command/openbsd.rb
236
236
  - lib/specinfra/command/openbsd/base.rb
237
+ - lib/specinfra/command/openbsd/base/bridge.rb
237
238
  - lib/specinfra/command/openbsd/base/file.rb
238
239
  - lib/specinfra/command/openbsd/base/interface.rb
239
240
  - lib/specinfra/command/openbsd/base/mail_alias.rb