Sha256: 3e764fb6432d363b756f4ff0c8caa6deb6fb26565a9999b1640789f5dbc1a6a2

Contents?: true

Size: 533 Bytes

Versions: 24

Compression:

Stored size: 533 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_vagrant_command("rm #{test_file}")
  rescue
    VagrantHelpers::VagrantSSHCommandError
  end
end

World(RemoteCommandHelpers)

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
capistrano-3.18.1 features/support/remote_command_helpers.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/capistrano-3.18.0/features/support/remote_command_helpers.rb
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/capistrano-3.18.0/features/support/remote_command_helpers.rb
capistrano-3.18.0 features/support/remote_command_helpers.rb
capistrano-3.17.3 features/support/remote_command_helpers.rb
capistrano-3.17.2 features/support/remote_command_helpers.rb
capistrano-3.17.1 features/support/remote_command_helpers.rb
capistrano-3.17.0 features/support/remote_command_helpers.rb
capistrano-3.16.0 features/support/remote_command_helpers.rb
capistrano-3.15.0 features/support/remote_command_helpers.rb
capistrano-3.14.1 features/support/remote_command_helpers.rb
capistrano-3.14.0 features/support/remote_command_helpers.rb
capistrano-3.13.0 features/support/remote_command_helpers.rb
capistrano-3.12.1 features/support/remote_command_helpers.rb
capistrano-3.12.0 features/support/remote_command_helpers.rb
honeybadger-4.5.3 vendor/bundle/ruby/2.6.0/gems/capistrano-3.11.0/features/support/remote_command_helpers.rb
capistrano-3.11.2 features/support/remote_command_helpers.rb
capistrano-3.11.1 features/support/remote_command_helpers.rb
capistrano-3.11.0 features/support/remote_command_helpers.rb
capistrano-3.10.2 features/support/remote_command_helpers.rb