Skip to content

Commit

Permalink
fixed syntax error in README and tests noticed by @sputnik13
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Crowe committed Oct 30, 2013
1 parent 1dc70da commit 5842d40
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ Note: Only Debian and RedHat families have an init script currently.
```ruby
supervisord::program { 'myprogram':
command => 'command --args',
priority => '100'
priority => '100',
environment => {
HOME => '/home/myuser',
PATH => '/bin:/sbin:/usr/bin:/usr/sbin',
SECRET => 'mysecret'
'HOME' => '/home/myuser',
'PATH' => '/bin:/sbin:/usr/bin:/usr/sbin',
'SECRET' => 'mysecret'
}
}
```
Expand All @@ -54,7 +54,7 @@ You may also specify a variable for a hiera lookup to retreive your environment
```ruby
supervisord::program { 'myprogram':
command => 'command --args',
priority => '100'
priority => '100',
env_var => 'my_common_envs'
}
```
Expand Down
6 changes: 3 additions & 3 deletions tests/group.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
supervisord::group { 'test':
priority => '100',
programs => ['program1', 'program2', 'program3']
supervisord::group { 'mygroup':
priority => 100,
program => ['program1', 'program2', 'program3']
}
16 changes: 7 additions & 9 deletions tests/program.pp
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
supervisord::program { 'test':
command => '/testcmd',
process_name => '%(process_num)s',
numprocs => '3',
priority => '100',
environment => {
env1 => 'env1',
env2 => 'env2',
env3 => 'env3'
supervisord::program { 'myprogram':
command => 'command --args',
priority => '100',
environment => {
'HOME' => '/home/myuser',
'PATH' => '/bin:/sbin:/usr/bin:/usr/sbin',
'SECRET' => 'mysecret'
}
}

0 comments on commit 5842d40

Please sign in to comment.