diff options
author | David Lawrence <dkl@mozilla.com> | 2015-07-06 21:21:04 +0200 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-07-06 21:21:04 +0200 |
commit | b758be1d37cb49ced8cb17fca3d5a4cb2dd2e03e (patch) | |
tree | 01d7b7c5a5fcd5dddc0ed4adc55a60917ce70bce /contrib/issue-api-key.pl | |
parent | f70d4ce7e0a94379bb901559109650874946c84b (diff) | |
download | bugzilla-b758be1d37cb49ced8cb17fca3d5a4cb2dd2e03e.tar.gz bugzilla-b758be1d37cb49ced8cb17fca3d5a4cb2dd2e03e.tar.xz |
Bug 1172968: Move the scripts we want to keep from contrib/* and place them in scripts/ directory. Remove contrib from repo
Diffstat (limited to 'contrib/issue-api-key.pl')
-rwxr-xr-x | contrib/issue-api-key.pl | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/contrib/issue-api-key.pl b/contrib/issue-api-key.pl deleted file mode 100755 index fe24f59df..000000000 --- a/contrib/issue-api-key.pl +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/perl -w -use strict; -use feature 'say'; - -use FindBin qw( $RealBin ); -use lib "$RealBin/.."; -use lib "$RealBin/../lib"; - -use Bugzilla; -use Bugzilla::Constants; -use Bugzilla::User; -use Bugzilla::User::APIKey; - -Bugzilla->usage_mode(USAGE_MODE_CMDLINE); - -my $login = shift - or die "syntax: $0 bugzilla-login [description]\n"; -my $description = shift; - -my $user = Bugzilla::User->check({ name => $login }); -my $api_key = Bugzilla::User::APIKey->create({ - user_id => $user->id, - description => $description, -}); -say $api_key->api_key; |