class Albacore::OutputArtifact

Constants

EXECUTABLE
LIBRARY
SYMBOLS
XMLDOC

Attributes

ext[R]

E.g. “.txt”

filename[R]

E.g. “lib.dll” E.g. “prog.exe”

path[R]

E.g. “bin/Debug/lib.dll” E.g. “bin/Debug/net461/lib.dll” E.g. “bin/Debug/net461/lib.xml” E.g. “bin/Debug/net461/lib.dll.pdb” E.g. “bin/Debug/net461/prog.exe”

sort[R]

E.g. :dll

Public Class Methods

new(path, sort) click to toggle source

Create a new OutputArtifact

# File lib/albacore/project.rb, line 38
def initialize path, sort
  @path, @sort = path, sort
  @ext = File.extname path
  @filename = File.basename path
end

Public Instance Methods

==(o) click to toggle source
# File lib/albacore/project.rb, line 69
def ==(o)
  @path == o.path && @sort == o.sort
end
Also aliased as: eql?
dll?() click to toggle source

Is the file a DLL file?

# File lib/albacore/project.rb, line 50
def dll?
  library?
end
eql?(o)
Alias for: ==
executable?() click to toggle source

Is the file an executable?

# File lib/albacore/project.rb, line 55
def executable?
  sort == ::EXECUTABLE
end
library?() click to toggle source

Is the file a DLL file?

# File lib/albacore/project.rb, line 45
def library?
  sort == ::LIBRARY
end
symbols?() click to toggle source

Is the file a symbol file?

# File lib/albacore/project.rb, line 65
def symbols?
  sort == ::SYMBOLS
end
xmldoc?() click to toggle source

Is the file a documentation file?

# File lib/albacore/project.rb, line 60
def xmldoc?
  sort == ::XMLDOC
end