diff options
| author | Luke Kanies <luke@madstop.com> | 2005-08-24 02:53:17 +0000 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2005-08-24 02:53:17 +0000 |
| commit | 386ebee31dcc67ac5a7fb569ee58c2365e0666e1 (patch) | |
| tree | 78db9c5928457c23907f87a2d105185bb6664e51 /bin/puppetmasterd | |
| parent | 583a9c6e2a7469e4ae3b72264010a5d8d0dab867 (diff) | |
| download | puppet-386ebee31dcc67ac5a7fb569ee58c2365e0666e1.tar.gz puppet-386ebee31dcc67ac5a7fb569ee58c2365e0666e1.tar.xz puppet-386ebee31dcc67ac5a7fb569ee58c2365e0666e1.zip | |
replacing if statements with case statement, and adding defaults for both selectors and case statements
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@587 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'bin/puppetmasterd')
| -rwxr-xr-x | bin/puppetmasterd | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/puppetmasterd b/bin/puppetmasterd index af5da3ee5..8ed9f739e 100755 --- a/bin/puppetmasterd +++ b/bin/puppetmasterd @@ -13,6 +13,7 @@ result = GetoptLong.new( [ "--logfile", "-l", GetoptLong::REQUIRED_ARGUMENT ], [ "--manifest", "-m", GetoptLong::REQUIRED_ARGUMENT ], [ "--ssldir", "-s", GetoptLong::REQUIRED_ARGUMENT ], + [ "--port", "-p", GetoptLong::REQUIRED_ARGUMENT ], [ "--noinit", "-n", GetoptLong::NO_ARGUMENT ], [ "--debug", "-d", GetoptLong::NO_ARGUMENT ], [ "--verbose", "-v", GetoptLong::NO_ARGUMENT ], @@ -34,6 +35,8 @@ result.each { |opt,arg| Puppet[:debug] = true when "--noca" ca = false + when "--port" + Puppet[:masterport] = arg when "--ssldir" Puppet[:ssldir] = arg when "--manifest" |
