Module: OmfRc::Util::CommonTools

Includes:
ResourceProxyDSL
Included in:
ResourceProxy::Application
Defined in:
omf_rc/lib/omf_rc/util/common_tools.rb

Overview

This module defines a Utility with some common work blocks that could be useful to any type of Resource Proxy (RP)

Constant Summary

Constant Summary

Constants included from ResourceProxyDSL

ResourceProxyDSL::DEFAULT_PROP_ACCESS, ResourceProxyDSL::PROXY_DIR, ResourceProxyDSL::UTIL_DIR

Instance Method Summary (collapse)

Methods included from ResourceProxyDSL

#call_hook, #hook_defined?, included

Instance Method Details

- (Boolean) cmd_exists?(cmd)

Returns:

  • (Boolean)


43
44
45
# File 'omf_rc/lib/omf_rc/util/common_tools.rb', line 43

def cmd_exists?(cmd)
  !Facter::Core::Execution.which(cmd).nil?
end