`available?` is a class method defined in `lib/pup...
# voxpupuli
m
available?
is a class method defined in
lib/puppet/provider/firewalld.rb
whose value is determined by the output of
check_running_state
in the same file. If the
firewall-cmd
utility is available at the state variable will be set to some non-nil value, which is then checked in the
available?
method and returns true if the value is non-nil and false if it is. tldr; It's just making sure the
firewalld-cmd
utility is available on the system and returns false if it isn't.