class Albacore::Asmver::Task
Public Class Methods
new(opts)
click to toggle source
# File lib/albacore/task_types/asmver.rb, line 134 def initialize opts @opts = opts end
Public Instance Methods
execute()
click to toggle source
# File lib/albacore/task_types/asmver.rb, line 137 def execute lang = @opts.get :language ns = @opts.get :namespace attrs = @opts.get :attributes out = @opts.get :out do trace { "asmver being written at '#{@opts.get :file_path}' [asmver-task #execute]" } File.open(@opts.get(:file_path), 'w') end ::Albacore::Asmver::FileGenerator.new(lang, ns, @opts).generate out, attrs trace { "asmver was written at '#{@opts.get :file_path}' [asmver-task #execute]" } ensure out.close if out end