Skip to content

Commit

Permalink
merge class selenium::service into selenium::server
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Hoblitt committed Oct 2, 2013
1 parent 558c335 commit ba59bb7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 50 deletions.
14 changes: 13 additions & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
#
# simple template
#
#
# === Examples
#
# include selenium::server
#
#
# === Authors
#
# Joshua Hoblitt <jhoblitt@cpan.org>
#
#
class selenium::server(
$display = $selenium::params::display,
$options = $selenium::params::server_options,
Expand All @@ -24,7 +31,12 @@
options => $options,
java => $selenium::java,
} ->
class { 'selenium::service': } ->
service { 'seleniumserver':
ensure => running,
hasstatus => true,
hasrestart => true,
enable => true,
} ->
Class[ 'selenium::server' ]

}
30 changes: 0 additions & 30 deletions manifests/service.pp

This file was deleted.

7 changes: 6 additions & 1 deletion spec/classes/selenium_server_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,12 @@
'display' => p[:display],
'options' => p[:options],
})
should contain_class('selenium::service')
should contain_service('seleniumserver').with({
:ensure => 'running',
:hasstatus => 'true',
:hasrestart => 'true',
:enable => 'true',
})
should contain_class('selenium::server')
end
end
Expand Down
18 changes: 0 additions & 18 deletions spec/classes/selenium_service_spec.rb

This file was deleted.

0 comments on commit ba59bb7

Please sign in to comment.