Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation into lib/Utils/Architectures.pm #8346

Merged
merged 1 commit into from Sep 2, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
53 changes: 53 additions & 0 deletions lib/Utils/Architectures.pm
Expand Up @@ -13,6 +13,12 @@
# You should have received a copy of the GNU General Public License along
# with this program; if not, see <http://www.gnu.org/licenses/>.

=head1 Utils::Architectures

C<Utils::Architectures> - Library for archtectures related functionality

=cut

package Utils::Architectures;
use strict;
use warnings;
Expand Down Expand Up @@ -42,21 +48,68 @@ our %EXPORT_TAGS = (

# specific architectures

=head2 is_s390x

is_s390x();
Zaoliang marked this conversation as resolved.
Show resolved Hide resolved

Returns C<check_var('s390x')>.

=cut
sub is_s390x {
return check_var('ARCH', 's390x');
}

=head2 is_i586

is_i586();

Returns C<check_var('is_i586')>.

=cut
sub is_i586 {
return check_var('ARCH', 'i586');
}

=head2 is_i686

is_i686();

Returns C<check_var('is_i686')>.

=cut
sub is_i686 {
return check_var('ARCH', 'i686');
}

=head2 is_x86_64

is_x86_64();

Returns C<check_var('x86_64')>.

=cut
sub is_x86_64 {
return check_var('ARCH', 'x86_64');
}

=head2 is_aarch64

is_aarch64();

Returns C<check_var('aarch64')>.

=cut
sub is_aarch64 {
return check_var('ARCH', 'aarch64');
}

=head2 is_ppc64le

is_ppc64le();

Returns C<check_var('ppc64le')>.

=cut
sub is_ppc64le {
return check_var('ARCH', 'ppc64le');
}
Expand Down