Method: ChefConfig::Config.path_accessible?

Defined in:
lib/chef-config/config.rb

.path_accessible?(path) ⇒ Boolean

Returns true only if the path exists and is readable and writeable for the user.

Returns:

  • (Boolean)


226
227
228
# File 'lib/chef-config/config.rb', line 226

def self.path_accessible?(path)
  File.exists?(path) && File.readable?(path) && File.writable?(path)
end