Sha256: c9e94c2a251d646e7368abeb7094ca671608493c6cdb36ecddbea72af212cbf7
Contents?: true
Size: 539 Bytes
Versions: 3
Compression:
Stored size: 539 Bytes
Contents
module RemoteCommandHelpers def test_dir_exists(path) exists?("d", path) end def test_symlink_exists(path) exists?("L", path) end def test_file_exists(path) exists?("f", path) end def exists?(type, path) %Q{[[ -#{type} "#{path}" ]]} end def symlinked?(symlink_path, target_path) "[ #{symlink_path} -ef #{target_path} ]" end def safely_remove_file(_path) run_remote_ssh_command("rm #{test_file}") rescue RemoteSSHHelpers::RemoteSSHCommandError end end World(RemoteCommandHelpers)
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
capistrano-3.19.2 | features/support/remote_command_helpers.rb |
capistrano-3.19.1 | features/support/remote_command_helpers.rb |
capistrano-3.19.0 | features/support/remote_command_helpers.rb |