projects
/
mirror
/
dsa-puppet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fail2ban: lint fixes
[mirror/dsa-puppet.git]
/
3rdparty
/
modules
/
concat
/
spec
/
spec_helper_acceptance_local.rb
1
# frozen_string_literal: true
2
3
def setup_test_directory
4
basedir = case os[:family]
5
when 'windows'
6
'c:/concat_test'
7
else
8
'/tmp/concat_test'
9
end
10
pp = <<-MANIFEST
11
file { '#{basedir}':
12
ensure => directory,
13
force => true,
14
purge => true,
15
recurse => true,
16
}
17
file { '#{basedir}/file':
18
content => "file exists\n",
19
force => true,
20
}
21
MANIFEST
22
apply_manifest(pp)
23
basedir
24
end