class Albacore::FsharpProject
Public Class Methods
new(project_path)
click to toggle source
Calls superclass method
# File lib/albacore/fsharp_project.rb, line 4 def initialize(project_path) super(project_path) sanity_checks end
Public Instance Methods
default_assembly_version()
click to toggle source
# File lib/albacore/fsharp_project.rb, line 9 def default_assembly_version begin info= File.read(assembly_info_path) v = info.each_line .select { |l| !(l.start_with?('//')||l.start_with?('(*')) && l.include?('AssemblyVersion(') }.first reg = /"(.*?)"/ reg.match(v).captures.first rescue '1.0.0.0' end end
Private Instance Methods
sanity_checks()
click to toggle source
Calls superclass method
# File lib/albacore/fsharp_project.rb, line 23 def sanity_checks super warn { "project '#{@proj_filename}' is not an fsharp project." } unless (File.extname(@proj_filename) =='.fsproj') end