Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Commit

Permalink
Add Perl Makefile and top-level linode POD
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor Parker committed Jan 14, 2014
1 parent 5152e3c commit b82b7c2
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
MANIFEST.bak
Makefile
Makefile.old
14 changes: 14 additions & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.*\._.*
.*\.DS_Store.*
.*\.git.*
.*\.perltidyrc.*

# Makemaker generated files and dirs.
^MANIFEST\.bak
^Makefile$
^blib/
^MakeMaker-\d
pm_to_blib
\.tar\.gz
\.tar
\.tmp
28 changes: 28 additions & 0 deletions Makefile.PL
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
use strict;

use ExtUtils::MakeMaker;

WriteMakefile(
NAME => 'Linode::CLI',
VERSION_FROM => 'lib/Linode/CLI/Util.pm',
ABSTRACT => 'A simple command-line interface to the Linode platform.',
AUTHOR => 'Linode, LLC',
PREREQ_PM => {
'Crypt::SSLeay' => 0,
'JSON' => 0,
'LWP::UserAgent' => 0,
'Mozilla::CA' => 0,
'Try::Tiny' => 0,
'WebService::Linode' => 0,
},
PMLIBDIRS => [
'lib/Linode',
],
EXE_FILES => [
'linode',
'linode-account',
'linode-domain',
'linode-linode',
'linode-stackscript',
],
);
43 changes: 43 additions & 0 deletions linode
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,46 @@ $object = 'linode'
unless ( defined($object) && ( my @found = grep { $_ eq $object } @MODES ) );

exec( $FindBin::RealBin . "/linode-$object", @ARGV );

__END__
=head1 NAME
linode - command-line interface to the Linode platform
=head1 SYNOPSIS
B<linode> [B<--object> object] [object-options...]
This is a wrapper utility to the suite of Linode command line tools.
=head2 Objects
The following command line tools are available, and can be called directly or
with B<linode object>.
=over 8
=item B<linode-account>
Interface to Linode account information. Use B<man linode-account> or
B<linode-account --help> for more information.
=item B<linode-domain>
Interface to Linode domains and DNS records. Use B<man linode-domain> or
B<linode-domain --help> for more information.
=item B<linode-linode>
Interface to Linode instances. Use B<man linode-linode> or
B<linode-linode --help> for more information.
=item B<linode-stackscript>
Interface to StackScripts. Use B<man linode-stackscript> or
B<linode-stackscript --help> for more information.
=back
=cut

0 comments on commit b82b7c2

Please sign in to comment.