Sha256: 2d09926a99d48503d4f5a09e52e08be8bc4a1cba765721a54ac3f276530aa743

Contents?: true

Size: 521 Bytes

Versions: 27

Compression:

Stored size: 521 Bytes

Contents

require 'spec_helper'

describe Chake::Backend::Local do

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

  let(:node) { Chake::Node.new('local://myusername@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
    allow(Socket).to receive(:gethostname).and_return('otherhost')
    expect(node.skip?).to eq(true)
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
chake-0.21.2 spec/chake/backend/local_spec.rb
chake-0.21.1 spec/chake/backend/local_spec.rb
chake-0.21 spec/chake/backend/local_spec.rb
chake-0.20 spec/chake/backend/local_spec.rb
chake-0.19 spec/chake/backend/local_spec.rb
chake-0.18 spec/chake/backend/local_spec.rb
chake-0.17.1 spec/chake/backend/local_spec.rb
chake-0.17 spec/chake/backend/local_spec.rb
chake-0.16 spec/chake/backend/local_spec.rb
chake-0.15 spec/chake/backend/local_spec.rb
chake-0.14 spec/chake/backend/local_spec.rb
chake-0.13 spec/chake/backend/local_spec.rb
chake-0.12 spec/chake/backend/local_spec.rb
chake-0.11 spec/chake/backend/local_spec.rb
chake-0.10.2 spec/chake/backend/local_spec.rb
chake-0.10.1 spec/chake/backend/local_spec.rb
chake-0.10 spec/chake/backend/local_spec.rb
chake-0.9.1 spec/chake/backend/local_spec.rb
chake-0.9 spec/chake/backend/local_spec.rb
chake-0.8 spec/chake/backend/local_spec.rb