Sha256: 188634fb64a55971fe17aa7754551ca8f375bcbc7ce956708a793c52de88a976

Contents?: true

Size: 645 Bytes

Versions: 26

Compression:

Stored size: 645 Bytes

Contents

require 'rubygems'
require 'net/ssh'
require 'net/sftp'
require 'log4r'
require 'lib/depengine/helper/validations'
require 'lib/depengine/publisher/ssh'
require 'lib/depengine/log/log'

$log            = Log::DeploymentLogger.new
$log.level      = Log4r::ERROR
$exec_file_path = __FILE__

describe "the ssh publisher" do
  it "should execute a command on a remote host" do
    worker = Publisher::Ssh.new
    worker.remote_host  = 'chiara'
    worker.remote_user  = ENV['USER']
    worker.ssh_key_file = '../etc/ssh/id_rsa.deployadmin'

    result = ''
    result = worker.remote_execute('ls -l /')
    result.should include("drwx")
  end

end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
depengine-0.0.27 spec/ssh_spec.rb
depengine-0.0.26 spec/ssh_spec.rb
depengine-0.0.25 spec/ssh_spec.rb
depengine-0.0.24 spec/ssh_spec.rb
depengine-0.0.23 spec/ssh_spec.rb
depengine-0.0.22 spec/ssh_spec.rb
depengine-0.0.21 spec/ssh_spec.rb
depengine-0.0.20 spec/ssh_spec.rb
depengine-0.0.19 spec/ssh_spec.rb
depengine-0.0.18 spec/ssh_spec.rb
depengine-0.0.17 spec/ssh_spec.rb
depengine-0.0.16 spec/ssh_spec.rb
depengine-0.0.15 spec/ssh_spec.rb
depengine-0.0.14 spec/ssh_spec.rb
depengine-0.0.13 spec/ssh_spec.rb
depengine-0.0.12 spec/ssh_spec.rb
depengine-0.0.11 spec/ssh_spec.rb
depengine-0.0.10 spec/ssh_spec.rb
depengine-0.0.9 spec/ssh_spec.rb
depengine-0.0.8 spec/ssh_spec.rb