Sha256: f6902060406849b7d600c3968e3e044828be5a535ac7b7cc59d76b672dd68f43
Contents?: true
Size: 537 Bytes
Versions: 10
Compression:
Stored size: 537 Bytes
Contents
require 'spec_helper' describe Chake::Connection::Local do include_examples 'Chake::Connection', Chake::Connection::Local let(:node) { Chake::Node.new('local://myusername@myhost/srv/chake') } it('runs commands with sh -c') { expect(connection.command_runner).to eq(['sh', '-c']) } it('rsyncs locally') { expect(connection.rsync_dest).to eq('/srv/chake/') } it('skips if hostname is not the local hostname') do allow(Socket).to receive(:gethostname).and_return('otherhost') expect(node.skip?).to eq(true) end end
Version data entries
10 entries across 10 versions & 1 rubygems