Class: Ports::Portfile

Inherits:
Object
  • Object
show all
Defined in:
lib/port_upgrade.rb

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ Portfile

Returns a new instance of Portfile.

Raises:

  • (Errno::ENOENT)


464
465
466
467
# File 'lib/port_upgrade.rb', line 464

def initialize(path)
  raise Errno::ENOENT if (File.file?(path) == false or File.readable?(path) == false)
  @path = path
end

Instance Method Details

#versionObject



469
470
471
# File 'lib/port_upgrade.rb', line 469

def version
  @version ||= find_vers
end