has why-run mode been enabled?
Returns:
151 152 153
# File 'lib/chef/provider.rb', line 151 def whyrun_mode? Chef::Config[:why_run] end