Sha256: 16c1823f0c29281fa21d89486fd71ad8cb3518a77741b7df2ff1207cf2a607a0

Contents?: true

Size: 800 Bytes

Versions: 124

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

def action_pass_buck
  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

124 entries across 124 versions & 1 rubygems

Version Path
chef-15.17.4-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.17.4 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.16.7-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.16.7 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.16.4-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.16.4 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.16.2-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.16.2 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.15.0-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.15.0 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.14.0 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.14.0-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.13.8 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.13.8-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.12.22 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.12.22-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.11.8 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.11.8-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-16.1.16 spec/data/lwrp/providers/buck_passer_2.rb
chef-16.1.16-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb