Skip to content

Commit

Permalink
More Yast-like module
Browse files Browse the repository at this point in the history
  • Loading branch information
kobliha committed Mar 27, 2014
1 parent e6bd483 commit 4a7bc0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/SUSERelease.rb
Expand Up @@ -79,14 +79,14 @@ def ReleaseInformation(base_dir="/")
shorten(product_name)
end

private

# Removes all unneeded stuff such as architecture or product nickname
def shorten(long_name)
long_name.gsub(/[ ]*\(.*/, "")
end

publish :function => :ReleaseInformation, :type => "string (string)"
end

SUSERelease = SUSEReleaseClass.new
SUSERelease.main
end

0 comments on commit 4a7bc0c

Please sign in to comment.