Sha256: 0af53167800b5eae20f3a176cf0be504669ac25226466cd3b054c8c92b7cddc0

Contents?: true

Size: 443 Bytes

Versions: 46

Compression:

Stored size: 443 Bytes

Contents

require File.join(File.dirname(__FILE__), 'test_helper')

class SSHTest < Test::Unit::TestCase
  should "be able to execute a command over ssh" do
    ssh = Hydra::SSH.new(
      'localhost', # connect to this machine
      File.expand_path(File.join(File.dirname(__FILE__))), # move to the test directory
      "ruby fixtures/hello_world.rb"
    )
    response = ssh.gets
    assert_equal "Hello World", response.text
    ssh.close
  end
end

Version data entries

46 entries across 46 versions & 4 rubygems

Version Path
hydra-0.23.3 test/ssh_test.rb
causes-hydra-0.21.0 test/ssh_test.rb
hydra-0.23.2 test/ssh_test.rb
hydra-0.23.1 test/ssh_test.rb
hydra-0.23.0 test/ssh_test.rb
hydra-0.22.2 test/ssh_test.rb
hydra-0.22.1 test/ssh_test.rb
hydra-0.22.0 test/ssh_test.rb
sskirby-hydra-0.21.0 test/ssh_test.rb
hydra-0.21.0 test/ssh_test.rb
hydra-0.20.0 test/ssh_test.rb
bellmyer-hydra-0.20.12 test/ssh_test.rb
bellmyer-hydra-0.20.11 test/ssh_test.rb
bellmyer-hydra-0.20.10 test/ssh_test.rb
bellmyer-hydra-0.20.9 test/ssh_test.rb
hydra-0.19.4 test/ssh_test.rb
hydra-0.19.3 test/ssh_test.rb
hydra-0.19.2 test/ssh_test.rb
hydra-0.19.1 test/ssh_test.rb
hydra-0.19.0 test/ssh_test.rb