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