CM.pm 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # ------------------------------------------------------------------------------
  2. # (C) Crown copyright Met Office. All rights reserved.
  3. # For further details please refer to the file COPYRIGHT.txt
  4. # which you should have received as part of this distribution.
  5. # ------------------------------------------------------------------------------
  6. use strict;
  7. use warnings;
  8. package Fcm::CLI::Invoker::CM;
  9. use base qw{Fcm::CLI::Invoker};
  10. use Fcm::Cm qw{cli};
  11. ################################################################################
  12. # Invokes the sub-system
  13. sub invoke {
  14. my ($self) = @_;
  15. return cli($self->get_command(), @ARGV);
  16. }
  17. 1;
  18. __END__
  19. =head1 NAME
  20. Fcm::CLI::Invoker::CM
  21. =head1 SYNOPSIS
  22. use Fcm::CLI::Invoker::CM;
  23. $invoker = Fcm::CLI::Invoker::CM->new();
  24. $invoker->invoke();
  25. =head1 DESCRIPTION
  26. This class extends L<Fcm::CLI::Invoker|Fcm::CLI::Invoker> an inherits all its
  27. methods. An object of this class is used to invoke a command in the CM
  28. sub-system.
  29. It is worth noting that this is not yet a full implementation.
  30. =head1 METHODS
  31. See L<Fcm::CLI::Invoker|Fcm::CLI::Invoker> for a list of inherited methods.
  32. =over 4
  33. =item invoke()
  34. Invokes a command in the CM sub-system.
  35. =back
  36. =head1 TO DO
  37. Bring the CM system into this framework.
  38. Unit tests.
  39. =head1 SEE ALSO
  40. L<Fcm::Cm|Fcm::Cm>,
  41. L<Fcm::CLI::Subcommand|Fcm::CLI::Subcommand>
  42. =head1 COPYRIGHT
  43. E<169> Crown copyright Met Office. All rights reserved.
  44. =cut