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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 752878a5e1f9c4c66e0e694a35828a41c053bb3b
|
4
|
+
data.tar.gz: f6810917014d94fd00fda3eb729588b170cef32f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efc924c21e4b6f7a0a890637b7b8024a01916a283e5a50125f5c66a13fcfa16b5bdc7dffd4bb293db6e056c6a647501528a420991a423b0856d2cd49f6a72f25
|
7
|
+
data.tar.gz: 680480acdbb6bc4b9de4f38770cffecad7839efc3559dbf49b5199daf90f701e4624ee1a60453fcc1c0cc84bb78add357b3e75a90dd5ab28c3338b085494c203
|
data/lib/specinfra/command.rb
CHANGED
@@ -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
|
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.10.
|
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-
|
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
|