Class: Buildify::AssemblyVersion
- Inherits:
-
Object
- Object
- Buildify::AssemblyVersion
- Defined in:
- lib/buildify/assembly_version.rb
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ AssemblyVersion
constructor
A new instance of AssemblyVersion.
- #version_assemblies ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ AssemblyVersion
Returns a new instance of AssemblyVersion.
6 7 8 |
# File 'lib/buildify/assembly_version.rb', line 6 def initialize(opts = {}) @options = opts end |
Instance Method Details
#version_assemblies ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/buildify/assembly_version.rb', line 10 def version_assemblies() @options[:paths].each do |path| :assemblies do |asm| asm.version = @options[:version] asm.file_version = @options[:version] if path.endswith('.vb') asm.language = "VB.Net" end asm.company_name = @options[:company_name] asm.product_name = @options[:product_name] asm.copyright = "Copyright " + @options[:build_time].year + " " + @options[:company_name] asm.output_file = path end end end |