Sha256: db0404a10d6ef6507ae13c3c4a678d3624674a1621088b86238af29c4831d0d6

Contents?: true

Size: 497 Bytes

Versions: 4

Compression:

Stored size: 497 Bytes

Contents

require 'spec_helper'

describe Chake::Backend::Local do

  include_examples "Chake::Backend", Chake::Backend::Local

  let(:node) { Chake::Node.new('local://myhost/srv/chef') }

  it('runs commands with sh -c') { expect(backend.command_runner).to eq(['sh', '-c']) }

  it('rsyncs locally') { expect(backend.rsync_dest).to eq('/srv/chef/') }

  it('skips if hostname is not the local hostname') do
    Socket.stub(:gethostname).and_return('otherhost')
    expect(node.skip?).to eq(true)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chake-0.2 spec/chake/backend/local_spec.rb
chake-0.1.7 spec/chake/backend/local_spec.rb
chake-0.1.6 spec/chake/backend/local_spec.rb
chake-0.1.5 spec/chake/backend/local_spec.rb