Skip to content

Commit

Permalink
Corrected lint erros
Browse files Browse the repository at this point in the history
  • Loading branch information
colferai committed Jan 16, 2014
1 parent 5d475f2 commit f46c358
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
35 changes: 20 additions & 15 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# ```puppet
# # defaults
# class { 'selenium':
# user => 'selenium',
# group => 'selenium',
# install_root => '/opt/selenium',
# java => 'java',
# version => '2.39.0',
# url => undef,
# timeout => '90',
# user => 'selenium',
# group => 'selenium',
# install_root => '/opt/selenium',
# java => 'java',
# version => '2.39.0',
# url => undef,
# download_timeout => '90',
# }
# ```
#
Expand Down Expand Up @@ -62,20 +62,25 @@
# file as this information is needed when starting up the server (this may
# change to be be automatically parsed from the `url` in a later release).
#
# #### `download_timeout`
#
# `String` defaults to: `90`
#
# Timeout to download of the package.
#
# === Authors
#
# Joshua Hoblitt <[email protected]>
#
#
class selenium(
$user = $selenium::params::user,
$group = $selenium::params::group,
$install_root = $selenium::params::install_root,
$java = $selenium::params::java,
$version = $selenium::params::version,
$url = undef,
$timeout = $selenium::params::download_timeout,
$user = $selenium::params::user,
$group = $selenium::params::group,
$install_root = $selenium::params::install_root,
$java = $selenium::params::java,
$version = $selenium::params::version,
$url = undef,
$download_timeout = $selenium::params::download_timeout,
) inherits selenium::params {
validate_string($user)
validate_string($group)
Expand Down Expand Up @@ -131,7 +136,7 @@
wget::fetch { 'selenium-server-standalone':
source => $jar_url,
destination => "${jar_path}/${jar_name}",
timeout => "${timeout}",
timeout => $download_timeout,
execuser => $user,
require => File[$jar_path],
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
$java = 'java'
$version = '2.39.0'
$default_hub = 'http://localhost:4444/grid/register'
$download_timeout = '90'
$download_timeout = '90'

case $::osfamily {
'redhat': {}
Expand Down

0 comments on commit f46c358

Please sign in to comment.