Module: Shell

Defined in:
lib/capistrano/modules/shell.rb

Instance Method Summary collapse

Instance Method Details

#file_exists?(file) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/capistrano/modules/shell.rb', line 2

def file_exists?(file)
  test("[ -f #{file} ]")
end