Class: FubuRake::AssemblyBottle
- Inherits:
-
Object
- Object
- FubuRake::AssemblyBottle
- Defined in:
- lib/bottles.rb
Instance Method Summary collapse
- #create(options) ⇒ Object
-
#initialize(project) ⇒ AssemblyBottle
constructor
A new instance of AssemblyBottle.
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() cleaned_name = @project.gsub('.', '_').downcase name = "bottle_#{cleaned_name}" task = Rake::Task.define_task name do sh "bottles assembly-pak #{[:source]}/#{@project} -p #{@project}.csproj" end task.add_description "Assembly bottle packing for #{@project}" Rake::Task[:compile].enhance [name] end |