6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'manifests/publish.pp', line 6
class sbt::publish(
$publish_credentials_file_path = undef,
$publish_credentials_file = undef,
$publish_realm = undef,
$publish_host = undef,
$publish_user = undef,
$publish_password = undef,
$publish_credentials_file_owner = undef
) {
assert_private()
file { "${publish_credentials_file_path}/${publish_credentials_file}":
ensure => 'present',
content => inline_template("realm=<%= @publish_realm %>\nhost=<%= @publish_host %>\nuser=<%= @publish_user %>\npassword=<%= @publish_password %>"),
owner => $publish_credentials_file_owner,
group => $publish_credentials_file_owner,
mode => '0600',
}
}
|