Skip to content

Commit

Permalink
Merge pull request #310 from EmersonPrado/issue_309
Browse files Browse the repository at this point in the history
Create missing `$wildfly::install_cache_dir` directory
  • Loading branch information
rwaffen authored Nov 24, 2023
2 parents 0c4f3db + 43fc142 commit 0b74285
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
$install_source = $wildfly::install_source
$install_file = basename($install_source)

file { $wildfly::install_cache_dir:
ensure => 'directory',
}

file { "${wildfly::install_cache_dir}/${install_file}":
source => $install_source,
}
Expand Down
1 change: 1 addition & 0 deletions spec/classes/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
end

it { is_expected.to contain_class('wildfly::install') }
it { is_expected.to contain_file('/var/cache/wget').with('ensure' => 'directory') }
it do
is_expected.to contain_file('/var/cache/wget/wildfly-9.0.2.Final.tar.gz').with(
'source' => 'http://download.jboss.org/wildfly/9.0.2.Final/wildfly-9.0.2.Final.tar.gz'
Expand Down

0 comments on commit 0b74285

Please sign in to comment.