Sha256: e2f21adc7855be30f2df08a1620fae0fde6c683f5920a65fef734ec0027c3a5f

Contents?: true

Size: 147 Bytes

Versions: 14

Compression:

Stored size: 147 Bytes

Contents

RSpec::Matchers.define :be_mode do |mode|
  match do |file|
    ret = ssh_exec(commands.check_mode(file, mode))
    ret[:exit_code] == 0
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
serverspec-0.1.6 lib/serverspec/matchers/be_mode.rb
serverspec-0.1.5 lib/serverspec/matchers/be_mode.rb
serverspec-0.1.4 lib/serverspec/matchers/be_mode.rb
serverspec-0.1.3 lib/serverspec/matchers/be_mode.rb
serverspec-0.1.2 lib/serverspec/matchers/be_mode.rb
serverspec-0.1.1 lib/serverspec/matchers/be_mode.rb
serverspec-0.1.0 lib/serverspec/matchers/be_mode.rb
serverspec-0.0.19 lib/serverspec/matchers/be_mode.rb
serverspec-0.0.18 lib/serverspec/matchers/be_mode.rb
serverspec-0.0.17 lib/serverspec/matchers/be_mode.rb
serverspec-0.0.16 lib/serverspec/matchers/be_mode.rb
serverspec-0.0.15 lib/serverspec/matchers/be_mode.rb
serverspec-0.0.14 lib/serverspec/matchers/be_mode.rb
serverspec-0.0.13 lib/serverspec/matchers/be_mode.rb