about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorJonathan "Duke" Leto <jonathan@leto.net>2011-04-29 19:29:33 -0700
committerJonathan "Duke" Leto <jonathan@leto.net>2011-04-29 19:29:33 -0700
commit7d4f2cd6db48e527f4822fe318ff4a82c064c645 (patch)
tree76cf70b85ec26c5d0eccbfdb956d51fdf34bda4c /lib
parentMake the builder do a 'use lib lib' so we don't have to (diff)
downloadjitterbug-7d4f2cd6db48e527f4822fe318ff4a82c064c645.tar.gz
Make the command-line arg of the builder --config to match jitterbug_db
Diffstat (limited to 'lib')
-rw-r--r--lib/jitterbug/Builder.pm10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/jitterbug/Builder.pm b/lib/jitterbug/Builder.pm
index 366878f..1f9bd3d 100644
--- a/lib/jitterbug/Builder.pm
+++ b/lib/jitterbug/Builder.pm
@@ -23,14 +23,14 @@ sub new {
 
     GetOptions(
         'C|cron'         => \$self->{'cron'},
-        'c|configfile=s' => \$self->{'configfile'},
+        'c|config=s' => \$self->{'config'},
         's|sleep=i'      => \$self->{'sleep'},
     ) or die "Cannot get options\n";
 
-    $self->{'configfile'}
+    $self->{'config'}
         or die qq{missing config.yml, use "-c config.yml" to help us find it\n};
 
-    die "Does not exist!: " . $self->{'configfile'} unless -e $self->{'configfile'};
+    die "Does not exist!: " . $self->{'config'} unless -e $self->{'config'};
 
     return $self;
 }
@@ -41,10 +41,10 @@ sub debug {
 
 sub run {
     my $self      = shift || die "Must call run() from object\n";
-    my $conf      = $self->{'conf'} = LoadFile( $self->{'configfile'} );
+    my $conf      = $self->{'conf'} = LoadFile( $self->{'config'} );
     my $dbix_conf = $conf->{'plugins'}{'DBIC'}{'schema'};
 
-    debug("Loaded config file: " . $self->{'configfile'});
+    debug("Loaded config file: " . $self->{'config'});
     debug("Connection Info: " . join ':', @{ $dbix_conf->{'connect_info'} });
 
     $self->{'schema'}   = jitterbug::Schema->connect( @{ $dbix_conf->{'connect_info'} } );