Sha256: 46097ba632a126273164b7c6618d01b7f192e44ec0aa6be9614316b8e1a3977c

Contents?: true

Size: 437 Bytes

Versions: 10

Compression:

Stored size: 437 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 safely_remove_file(_path)
    run_vagrant_command("rm #{test_file}")
  rescue
    VagrantHelpers::VagrantSSHCommandError
  end
end

World(RemoteCommandHelpers)

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
capistrano-3.8.2 features/support/remote_command_helpers.rb
capistrano-3.8.1 features/support/remote_command_helpers.rb
capistrano-3.8.0 features/support/remote_command_helpers.rb
capistrano-3.7.2 features/support/remote_command_helpers.rb
capistrano-3.7.1 features/support/remote_command_helpers.rb
capistrano-3.7.0 features/support/remote_command_helpers.rb
capistrano-3.7.0.beta1 features/support/remote_command_helpers.rb
capistrano-3.6.1 features/support/remote_command_helpers.rb
capistrano-3.6.0 features/support/remote_command_helpers.rb
capistrano-3.5.0 features/support/remote_command_helpers.rb