Class: FubuRake::AssemblyBottle

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

Instance Method Summary collapse

Constructor Details

#initialize(project) ⇒ AssemblyBottle

Returns a new instance of AssemblyBottle.



4
5
6
# File 'lib/bottles.rb', line 4

def initialize(project)
	@project = project
end

Instance Method Details

#create(options) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/bottles.rb', line 8

def create(options)
	cleaned_name = @project.gsub('.', '_').downcase

	name = "bottle_#{cleaned_name}"
	task = Rake::Task.define_task name do
	sh "bottles assembly-pak #{options[:source]}/#{@project} -p #{@project}.csproj"

	end

	task.add_description "Assembly bottle packing for #{@project}"
	Rake::Task[:compile].enhance [name]
end