Skip to content

Commit f46c358

Browse files
committedJan 16, 2014
Corrected lint erros
1 parent 5d475f2 commit f46c358

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed
 

‎manifests/init.pp

+20-15
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@
1010
# ```puppet
1111
# # defaults
1212
# class { 'selenium':
13-
# user => 'selenium',
14-
# group => 'selenium',
15-
# install_root => '/opt/selenium',
16-
# java => 'java',
17-
# version => '2.39.0',
18-
# url => undef,
19-
# timeout => '90',
13+
# user => 'selenium',
14+
# group => 'selenium',
15+
# install_root => '/opt/selenium',
16+
# java => 'java',
17+
# version => '2.39.0',
18+
# url => undef,
19+
# download_timeout => '90',
2020
# }
2121
# ```
2222
#
@@ -62,20 +62,25 @@
6262
# file as this information is needed when starting up the server (this may
6363
# change to be be automatically parsed from the `url` in a later release).
6464
#
65+
# #### `download_timeout`
66+
#
67+
# `String` defaults to: `90`
68+
#
69+
# Timeout to download of the package.
6570
#
6671
# === Authors
6772
#
6873
# Joshua Hoblitt <jhoblitt@cpan.org>
6974
#
7075
#
7176
class selenium(
72-
$user = $selenium::params::user,
73-
$group = $selenium::params::group,
74-
$install_root = $selenium::params::install_root,
75-
$java = $selenium::params::java,
76-
$version = $selenium::params::version,
77-
$url = undef,
78-
$timeout = $selenium::params::download_timeout,
77+
$user = $selenium::params::user,
78+
$group = $selenium::params::group,
79+
$install_root = $selenium::params::install_root,
80+
$java = $selenium::params::java,
81+
$version = $selenium::params::version,
82+
$url = undef,
83+
$download_timeout = $selenium::params::download_timeout,
7984
) inherits selenium::params {
8085
validate_string($user)
8186
validate_string($group)
@@ -131,7 +136,7 @@
131136
wget::fetch { 'selenium-server-standalone':
132137
source => $jar_url,
133138
destination => "${jar_path}/${jar_name}",
134-
timeout => "${timeout}",
139+
timeout => $download_timeout,
135140
execuser => $user,
136141
require => File[$jar_path],
137142
}

‎manifests/params.pp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
$java = 'java'
1515
$version = '2.39.0'
1616
$default_hub = 'http://localhost:4444/grid/register'
17-
$download_timeout = '90'
17+
$download_timeout = '90'
1818

1919
case $::osfamily {
2020
'redhat': {}

0 commit comments

Comments
 (0)
Please sign in to comment.