Sha256: 22a7477da335121e1e6029208d3b435aebca89e051f751ba6c15780c84c148d4

Contents?: true

Size: 557 Bytes

Versions: 1

Compression:

Stored size: 557 Bytes

Contents

# encoding: utf-8
# author: Christoph Hartmann
# author: Dominik Richter
#
# adds a yaml file

gid = 'root'
gid = 'wheel' if node['platform_family'] == 'freebsd'

['yml', 'json', 'csv', 'ini'].each { |filetype|

  if node['platform_family'] != 'windows'
    cookbook_file "/tmp/example.#{filetype}" do
      source "example.#{filetype}"
      owner 'root'
      group gid
      mode '0755'
      action :create
    end
  else
    cookbook_file "C:/windows/temp/example.#{filetype}" do
      source "example.#{filetype}"
      action :create
    end
  end
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
inspec-0.9.8 test/integration/cookbooks/os_prepare/recipes/json_yaml_csv_ini.rb