Class: VCPort::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/vcpkg_pipeline/extension/vcport_vpl.rb

Overview

VCPort::Base

Defined Under Namespace

Classes: Portfile, VCPkg

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject

Returns the value of attribute path.



17
18
19
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 17

def path
  @path
end

#port_pathObject

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

#portfileObject

Returns the value of attribute portfile.



17
18
19
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 17

def portfile
  @portfile
end

#vcpkgObject

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_sObject



28
29
30
# File 'lib/vcpkg_pipeline/extension/vcport_vpl.rb', line 28

def to_s
  "#{vcpkg}\n#{portfile}"
end