Class: FubuRake::SolutionTasks

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSolutionTasks

Returns a new instance of SolutionTasks.



31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/fuburake.rb', line 31

def initialize
    @options = {}
  @bottles = []
  @bottles_enabled = true

  solutions = Dir.glob('**/*.sln')
  if solutions.count == 1
    solutionfile = solutions[0]

    @compile = {:solutionfile => solutionfile}
  end
end

Instance Attribute Details

#assembly_infoObject

Returns the value of attribute assembly_info.



16
17
18
# File 'lib/fuburake.rb', line 16

def assembly_info
  @assembly_info
end

#bottlesObject

Returns the value of attribute bottles.



16
17
18
# File 'lib/fuburake.rb', line 16

def bottles
  @bottles
end

#bottles_enabledObject

Returns the value of attribute bottles_enabled.



16
17
18
# File 'lib/fuburake.rb', line 16

def bottles_enabled
  @bottles_enabled
end

#ci_stepsObject

Returns the value of attribute ci_steps.



16
17
18
# File 'lib/fuburake.rb', line 16

def ci_steps
  @ci_steps
end

#cleanObject

Returns the value of attribute clean.



16
17
18
# File 'lib/fuburake.rb', line 16

def clean
  @clean
end

#compilationsObject

Returns the value of attribute compilations.



16
17
18
# File 'lib/fuburake.rb', line 16

def compilations
  @compilations
end

#compileObject

Returns the value of attribute compile.



16
17
18
# File 'lib/fuburake.rb', line 16

def compile
  @compile
end

#defaultsObject

Returns the value of attribute defaults.



16
17
18
# File 'lib/fuburake.rb', line 16

def defaults
  @defaults
end

#doc_exportsObject

Returns the value of attribute doc_exports.



16
17
18
# File 'lib/fuburake.rb', line 16

def doc_exports
  @doc_exports
end

#fubudocs_enabledObject

Returns the value of attribute fubudocs_enabled.



16
17
18
# File 'lib/fuburake.rb', line 16

def fubudocs_enabled
  @fubudocs_enabled
end

#integration_testObject

Returns the value of attribute integration_test.



16
17
18
# File 'lib/fuburake.rb', line 16

def integration_test
  @integration_test
end

#optionsObject

Returns the value of attribute options.



16
17
18
# File 'lib/fuburake.rb', line 16

def options
  @options
end

#precompileObject

Returns the value of attribute precompile.



16
17
18
# File 'lib/fuburake.rb', line 16

def precompile
  @precompile
end

#ripple_enabledObject

Returns the value of attribute ripple_enabled.



16
17
18
# File 'lib/fuburake.rb', line 16

def ripple_enabled
  @ripple_enabled
end

Instance Method Details

#assembly_bottle(project) ⇒ Object



50
51
52
53
54
# File 'lib/fuburake.rb', line 50

def assembly_bottle(project)
  @bottles ||= []

  @bottles << FubuRake::AssemblyBottle.new(project)
end

#compile_step(name, solution) ⇒ Object



44
45
46
47
48
# File 'lib/fuburake.rb', line 44

def compile_step(name, solution)
  @compilations ||= []

  @compilations << CompileTarget.new(name, solution)
end

#export_docs(options) ⇒ Object



56
57
58
59
60
# File 'lib/fuburake.rb', line 56

def export_docs(options)
  @doc_exports ||= []
  
  @doc_exports << options
end