Sha256: d0b1ccc8d735aafa1541904b756fefadbf7f28c777828c0771328fc4f9a02b67

Contents?: true

Size: 715 Bytes

Versions: 26

Compression:

Stored size: 715 Bytes

Contents

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

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

describe "the dweb publisher" do
  it "should execute a command on a dweb staging host" do
    worker = Publisher::Dweb.new
    worker.staging_host = '217.73.53.42'
    worker.ssh_key_file = '../etc/ssh/id_rsa.deployadmin'
    worker.siteid       = 'dw09964'

    result = worker.send_command('list')
    result.should include("complete")
  end

  it "should upload files to the dweb staging system" do
    # todo
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

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