specinfra 2.67.8 → 2.67.9

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: 0ec89b1a61e742e944b125ce3f59c1d24c5c82d2
4
- data.tar.gz: be037120947aacfa7899bc980dc92a9bcde153c2
3
+ metadata.gz: c0c17890dd58c5a886e175b76e0834caaf4c94ca
4
+ data.tar.gz: 636fef50f3cf778d370b01c87ca0d7169c2a6f6b
5
5
  SHA512:
6
- metadata.gz: 2b5c0ddcb7268f5417c1ace1c9fdd61b93d4235dafb33ed913beab573cad36828c16d0456507b747e2ecdd6302d47d4504f75509d7e8ffbde0223cc6fa52760c
7
- data.tar.gz: 64215c8e8ff8e50f6a4354c2712c7dc00b958f2bb290d254b20a62927427036037b44cb238b3692aa57e2b045961d754b475c5fee383c424b91c72ecf1171126
6
+ metadata.gz: ae69e38ff5e86dde95e9efe32b656e061073c59539c602e57d1320cc8dd3b8f7856b362e94bdabee8a4953308aa6d5861ae1d211ed58afac84bb31ed9a4f6ed9
7
+ data.tar.gz: ee4614771b275528aa048af2233cdabffdb8617ba8a1f91a9c960ab8fb423ff7454505d5e3f4c7ecb9334d5002a3c71093771c86a0969f9cce4afbfea27830c0
@@ -8,7 +8,7 @@ module Specinfra
8
8
  path = get_config(:path)
9
9
  if path
10
10
  cmd.strip!
11
- cmd =
11
+ cmd =
12
12
  <<-EOF
13
13
  $env:path = "#{path};$env:path"
14
14
  #{cmd}
@@ -21,12 +21,10 @@ EOF
21
21
  path = get_config(:path)
22
22
  if get_config(:pre_command)
23
23
  cmd.strip!
24
- cmd =
24
+ cmd =
25
25
  <<-EOF
26
- if (#{get_config(:pre_command)})
27
- {
26
+ #{get_config(:pre_command)}
28
27
  #{cmd}
29
- }
30
28
  EOF
31
29
  cmd = "$env:path = \"#{path};$env:path\"\n#{cmd}" if path
32
30
  end
@@ -127,6 +127,7 @@ require 'specinfra/command/aix/base/user'
127
127
  # Alpine (inherit Linux)
128
128
  require 'specinfra/command/alpine'
129
129
  require 'specinfra/command/alpine/base'
130
+ require 'specinfra/command/alpine/base/host'
130
131
  require 'specinfra/command/alpine/base/package'
131
132
  require 'specinfra/command/alpine/base/process'
132
133
  require 'specinfra/command/alpine/base/service'
@@ -244,6 +245,7 @@ require 'specinfra/command/freebsd/base/port'
244
245
  require 'specinfra/command/freebsd/base/service'
245
246
  require 'specinfra/command/freebsd/base/routing_table'
246
247
  require 'specinfra/command/freebsd/base/user'
248
+ require 'specinfra/command/freebsd/base/zfs'
247
249
 
248
250
  # FreeBSD V6 (inherit FreeBSD)
249
251
  require 'specinfra/command/freebsd/v6'
@@ -0,0 +1,11 @@
1
+ class Specinfra::Command::Alpine::Base::Host < Specinfra::Command::Base::Host
2
+ class << self
3
+ def check_is_reachable(host, port, proto, timeout)
4
+ if port.nil?
5
+ "ping -w #{escape(timeout)} -c 2 -n #{escape(host)}"
6
+ else
7
+ "nc -w #{escape(timeout)} -vvvvz#{proto.downcase.start_with?('u') ? 'u' : ''} #{escape(host)} #{escape(port)}"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ class Specinfra::Command::Freebsd::Base::Zfs < Specinfra::Command::Base::Zfs
2
+ class << self
3
+ include Specinfra::Command::Module::Zfs
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.67.8"
2
+ VERSION = "2.67.9"
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.67.8
4
+ version: 2.67.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-11 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -213,6 +213,7 @@ files:
213
213
  - lib/specinfra/command/aix/base/user.rb
214
214
  - lib/specinfra/command/alpine.rb
215
215
  - lib/specinfra/command/alpine/base.rb
216
+ - lib/specinfra/command/alpine/base/host.rb
216
217
  - lib/specinfra/command/alpine/base/package.rb
217
218
  - lib/specinfra/command/alpine/base/process.rb
218
219
  - lib/specinfra/command/alpine/base/service.rb
@@ -304,6 +305,7 @@ files:
304
305
  - lib/specinfra/command/freebsd/base/routing_table.rb
305
306
  - lib/specinfra/command/freebsd/base/service.rb
306
307
  - lib/specinfra/command/freebsd/base/user.rb
308
+ - lib/specinfra/command/freebsd/base/zfs.rb
307
309
  - lib/specinfra/command/freebsd/v6.rb
308
310
  - lib/specinfra/command/freebsd/v6/package.rb
309
311
  - lib/specinfra/command/freebsd/v6/user.rb