capistrano/docs/documentation/faq/how-can-i-check-for-existin.../index.markdown

230 B

title layout
How can I check for existing remote file? default

The test method is best used for file checking with bash conditionals

        if test("[ -f /tmp/foo ]")
            # do stuff
        end