Sha256: f9b713c0235aa4b9966ea21b4ed4dd6120e09c1e24362706090bfa17500ea5d5

Contents?: true

Size: 826 Bytes

Versions: 28

Compression:

Stored size: 826 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

28 entries across 28 versions & 1 rubygems

Version Path
chef-14.13.11-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.0.300-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.0.298-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-15.0.293-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.12.9-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.12.3-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-13.12.14-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.11.21-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.10.9-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.9.13-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.8.12-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.7.17-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-13.12.3-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.6.47-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-13.11.3-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.5.33-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-13.10.4-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-14.3.37-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-13.10.0-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb
chef-13.9.4-universal-mingw32 spec/data/lwrp/providers/buck_passer_2.rb