Class: PKGUtil::PKG
- Inherits:
-
Object
- Object
- PKGUtil::PKG
- Defined in:
- lib/iesd/utility/pkgutil.rb
Direct Known Subclasses
IESD::Packages::BaseSystemBinaries, IESD::Packages::OSInstall, IESD::Packages::OSInstallM, IESD::Packages::OSUpgrade
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
- #edit ⇒ Object
-
#initialize(url) ⇒ PKG
constructor
A new instance of PKG.
- #show(&block) ⇒ Object
- #update(&block) ⇒ Object
Constructor Details
#initialize(url) ⇒ PKG
Returns a new instance of PKG.
53 54 55 |
# File 'lib/iesd/utility/pkgutil.rb', line 53 def initialize url @url = File.absolute_path url end |
Instance Attribute Details
#url ⇒ Object
Returns the value of attribute url.
51 52 53 |
# File 'lib/iesd/utility/pkgutil.rb', line 51 def url @url end |
Instance Method Details
#edit ⇒ Object
61 62 63 |
# File 'lib/iesd/utility/pkgutil.rb', line 61 def edit update end |
#show(&block) ⇒ Object
57 58 59 |
# File 'lib/iesd/utility/pkgutil.rb', line 57 def show &block PKGUtil.read(@url, &block) end |
#update(&block) ⇒ Object
65 66 67 |
# File 'lib/iesd/utility/pkgutil.rb', line 65 def update &block PKGUtil.write(@url, &block) end |