root/library/perl/trunk/Assurer/assurer.pl

Revision 352, 0.5 kB (checked in by miya, 2 years ago)

Assurer: assurer.pl supports --host option.
config.yaml supports hosts and role.

  • Property svn:executable set to *
Line 
1 #!/usr/bin/perl
2
3 use strict;
4 use warnings;
5
6 use FindBin;
7 use File::Spec;
8 use Getopt::Long;
9
10 use lib File::Spec->catdir($FindBin::Bin, 'lib');
11 use Assurer;
12
13 my $config = File::Spec->catfile($FindBin::Bin, 'config.yaml');
14 GetOptions(
15     '--config=s' => \$config,
16     '--host=s'     => \my $host,
17     '--version'  => \my $version,
18 );
19
20 Getopt::Long::Configure('bundling');
21
22 if ($version) {
23     print "Assurer version $Assurer::VERSION\n";
24     exit;
25 }
26
27 Assurer->bootstrap({
28     config => $config,
29     host   => $host,
30 });
31
32 exit;
Note: See TracBrowser for help on using the browser.