specinfra 2.77.2 → 2.77.3

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: bce62c51120acb9cc12dac9fc428ac2da32cf924
4
- data.tar.gz: 5c73a91d208f2de0081a18659d60b4cc302d4a42
3
+ metadata.gz: 8298f534eb799315d2668c7aa87ab7f7ba3e782b
4
+ data.tar.gz: 87ede0e5c80701a4711db671aa8594d033bf00a7
5
5
  SHA512:
6
- metadata.gz: ff304bd0599e8cbfb0cc7fc9240660b1a23e2ee582d855791df3987ee963c8290f0eb917bfca4e380bd44f56b36d09e662f32f11d72a216ffe425c4031cb6396
7
- data.tar.gz: ffbf07873f06aecdc647b9a62d8e328ff6462346048648cfb9c239ba2fab14b57a9690c18a2a57c1701ffc289088aabba44a57b95348e34bacb4a49b64805dc4
6
+ metadata.gz: ae268a5bf8cba85c6502465962fb03139ecb91b7977de81520601a678fcde2e591d5a4d983fb50eeea8ac92c39620cf59a6595b9b2f16dc61b4141b13124db65
7
+ data.tar.gz: 5827def71e3936751f8e1be0ce47c38c3a3499d5443372a1f8f328226da5306041efd58119502ca3b4ed0f10bfe15b60b12db0b0ca14e6bfd12aafadbc67fead
@@ -80,7 +80,6 @@ require 'specinfra/command/esxi/base/package'
80
80
  # RedHat (inherit Linux)
81
81
  require 'specinfra/command/redhat'
82
82
  require 'specinfra/command/redhat/base'
83
- require 'specinfra/command/redhat/base/file'
84
83
  require 'specinfra/command/redhat/base/host'
85
84
  require 'specinfra/command/redhat/base/iptables'
86
85
  require 'specinfra/command/redhat/base/package'
@@ -142,7 +141,6 @@ require 'specinfra/command/alpine/base/service'
142
141
  # Arch (inherit Linux)
143
142
  require 'specinfra/command/arch'
144
143
  require 'specinfra/command/arch/base'
145
- require 'specinfra/command/arch/base/file'
146
144
  require 'specinfra/command/arch/base/service'
147
145
  require 'specinfra/command/arch/base/package'
148
146
 
@@ -1,7 +1,7 @@
1
1
  class Specinfra::Command::Linux::Base::File < Specinfra::Command::Base::File
2
2
  class << self
3
3
  def check_is_accessible_by_user(file, user, access)
4
- "su -s /bin/sh -c \"test -#{access} #{file}\" #{user}"
4
+ "sudo -u #{user} test -#{access} #{file}"
5
5
  end
6
6
 
7
7
  def check_is_immutable(file)
@@ -1,3 +1,3 @@
1
1
  module Specinfra
2
- VERSION = "2.77.2"
2
+ VERSION = "2.77.3"
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.77.2
4
+ version: 2.77.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gosuke Miyashita
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-13 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: net-scp
@@ -171,7 +171,6 @@ files:
171
171
  - lib/specinfra/command/amazon/v2/service.rb
172
172
  - lib/specinfra/command/arch.rb
173
173
  - lib/specinfra/command/arch/base.rb
174
- - lib/specinfra/command/arch/base/file.rb
175
174
  - lib/specinfra/command/arch/base/package.rb
176
175
  - lib/specinfra/command/arch/base/service.rb
177
176
  - lib/specinfra/command/base.rb
@@ -352,7 +351,6 @@ files:
352
351
  - lib/specinfra/command/raspbian.rb
353
352
  - lib/specinfra/command/redhat.rb
354
353
  - lib/specinfra/command/redhat/base.rb
355
- - lib/specinfra/command/redhat/base/file.rb
356
354
  - lib/specinfra/command/redhat/base/host.rb
357
355
  - lib/specinfra/command/redhat/base/iptables.rb
358
356
  - lib/specinfra/command/redhat/base/package.rb
@@ -1,14 +0,0 @@
1
- class Specinfra::Command::Arch::Base::File < Specinfra::Command::Linux::Base::File
2
- class << self
3
- def check_is_accessible_by_user(file, user, access)
4
- "runuser -s /bin/sh -c \"test -#{access} #{file}\" #{user}"
5
- end
6
- end
7
- end
8
-
9
-
10
-
11
-
12
-
13
-
14
-
@@ -1,8 +0,0 @@
1
- class Specinfra::Command::Redhat::Base::File < Specinfra::Command::Linux::Base::File
2
- class << self
3
- def check_is_accessible_by_user(file, user, access)
4
- # Redhat-specific
5
- "runuser -s /bin/sh -c \"test -#{access} #{file}\" #{user}"
6
- end
7
- end
8
- end