Class: Cfruby::Packages::PackageInfo

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/libcfruby/packages.rb

Overview

A holding object for information about a package. Currently implemented as a simple OpenStruct. Should provide accessor methods for as many of the following as possible (listed in order of importance):

name

The name of the package without version numbers (apache)

version

The version of the package (1.3.1r2)

fullname

The full name of the package (Apache Web Server)

description

A short description of the package (A full-featured and fast web server)

os-specific items (category, origin, etc)

Instance Method Summary collapse

Instance Method Details

#to_sObject



40
41
42
# File 'lib/libcfruby/packages.rb', line 40

def to_s()
	return("#{self.name}-#{self.version}")
end