Sha256: 8ec941437517c0a6e69b17fce06d1fa899590ae50c68018db684b63658ce60e3

Contents?: true

Size: 800 Bytes

Versions: 75

Compression:

Stored size: 800 Bytes

Contents

def without_deprecation_warnings(&block)
  old_treat_deprecation_warnings_as_errors = Chef::Config[:treat_deprecation_warnings_as_errors]
  Chef::Config[:treat_deprecation_warnings_as_errors] = false
  begin
    block.call
  ensure
    Chef::Config[:treat_deprecation_warnings_as_errors] = old_treat_deprecation_warnings_as_errors
  end
end

action :pass_buck do
  lwrp_bar :prepared_eyes do
    action :prepare_eyes
    # We know there will be a deprecation error here; head it off
    without_deprecation_warnings do
      provider :lwrp_paint_drying_watcher
    end
  end
  lwrp_bar :dried_paint_watched do
    action :watch_paint_dry
    # We know there will be a deprecation error here; head it off
    without_deprecation_warnings do
      provider :lwrp_paint_drying_watcher
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
chef-12.13.37-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.13.37 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.13.30 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.13.30-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.12.15-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.12.15 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.12.13 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.12.13-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.11.18-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.11.18 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.10.24 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.10.24-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.9.41 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.9.41-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.9.38 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.9.38-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.7.2 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.7.2-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.6.0 spec/data/lwrp/providers/buck_passer_2.rb
chef-12.6.0-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb