Method: VScripts::Config#check_config

Defined in:
lib/vscripts/config.rb

#check_config(file) ⇒ Boolean

Returns true if the file exists.

Parameters:

  • file (String)

    the path to the configuration file

Returns:

  • (Boolean)

    true if the file exists



48
49
50
# File 'lib/vscripts/config.rb', line 48

def check_config(file)
  file && File.exist?(file)
end