Sha256: 131de82c088477f03fc96268ea5e8d2bcda88f362c70e1d1c95d81716131a50f

Contents?: true

Size: 810 Bytes

Versions: 75

Compression:

Stored size: 810 Bytes

Contents

provides :buck_passer

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_foo :prepared_thumbs do
    action :prepare_thumbs
    # We know there will be a deprecation error here; head it off
    without_deprecation_warnings do
      provider :lwrp_thumb_twiddler
    end
  end
  lwrp_foo :twiddled_thumbs do
    action :twiddle_thumbs
    # We know there will be a deprecation error here; head it off
    without_deprecation_warnings do
      provider :lwrp_thumb_twiddler
    end
  end
end

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
chef-12.5.1-universal-mingw32 spec/data/lwrp/providers/buck_passer.rb
chef-12.5.1 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.3-universal-mingw32 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.3 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.2-universal-mingw32 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.2 spec/data/lwrp/providers/buck_passer.rb
chef-12.5.0.alpha.1 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.1-universal-mingw32 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.1 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.0 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.0-universal-mingw32 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.0.rc.2 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.0.rc.2-universal-mingw32 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.0.rc.0 spec/data/lwrp/providers/buck_passer.rb
chef-12.4.0.rc.0-universal-mingw32 spec/data/lwrp/providers/buck_passer.rb