Method: Puppet::Type#noop?

Defined in:
lib/puppet/type.rb

#noop?Boolean

Returns the noop run mode status of this.

Returns:

  • (Boolean)

    true if running in noop mode.



1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
# File 'lib/puppet/type.rb', line 1132

def noop?
  # If we're not a host_config, we're almost certainly part of
  # Settings, and we want to ignore 'noop'
  return false if catalog and !catalog.host_config?

  if defined?(@noop)
    @noop
  else
    Puppet[:noop]
  end
end