Class: VCPort::Base
- Inherits:
-
Object
- Object
- VCPort::Base
- Defined in:
- lib/vcpkg_pipeline/extension/vcport_vpl.rb
Overview
VCPort::Base
Defined Under Namespace
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
-
#port_path ⇒ Object
Returns the value of attribute port_path.
-
#portfile ⇒ Object
Returns the value of attribute portfile.
-
#vcpkg ⇒ Object
Returns the value of attribute vcpkg.
Instance Method Summary collapse
-
#initialize(path) ⇒ Base
constructor
A new instance of Base.
- #to_s ⇒ Object
Constructor Details
#initialize(path) ⇒ Base
Returns a new instance of Base.
19 20 21 22 23 24 25 26 |
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 19 def initialize(path) @path = path @port_path = "#{path}/vcport" VPL.error("#{@port_path} Not Found") unless File.directory? @port_path @vcpkg = VCPkg.new(@port_path) @portfile = Portfile.new(@port_path) end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
17 18 19 |
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 17 def path @path end |
#port_path ⇒ Object
Returns the value of attribute port_path.
17 18 19 |
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 17 def port_path @port_path end |
#portfile ⇒ Object
Returns the value of attribute portfile.
17 18 19 |
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 17 def portfile @portfile end |
#vcpkg ⇒ Object
Returns the value of attribute vcpkg.
17 18 19 |
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 17 def vcpkg @vcpkg end |
Instance Method Details
#to_s ⇒ Object
28 29 30 |
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 28 def to_s "#{vcpkg}\n#{portfile}" end |