Class: Buildr::IntellijIdea::IdeaProject
- Defined in:
- lib/buildr/ide/idea.rb
Overview
IdeaModule represents an .ipr file
Constant Summary
Constants inherited from IdeaFile
Buildr::IntellijIdea::IdeaFile::DEFAULT_SUFFIX
Instance Attribute Summary collapse
-
#extra_modules ⇒ Object
Returns the value of attribute extra_modules.
- #jdk_version ⇒ Object
-
#vcs ⇒ Object
Returns the value of attribute vcs.
Attributes inherited from IdeaFile
#buildr_project, #id, #suffix, #template
Instance Method Summary collapse
-
#initialize(buildr_project) ⇒ IdeaProject
constructor
A new instance of IdeaProject.
Methods inherited from IdeaFile
#add_component, #filename, #write
Constructor Details
#initialize(buildr_project) ⇒ IdeaProject
384 385 386 387 388 |
# File 'lib/buildr/ide/idea.rb', line 384 def initialize(buildr_project) @buildr_project = buildr_project @vcs = detect_vcs @extra_modules = [] end |
Instance Attribute Details
#extra_modules ⇒ Object
Returns the value of attribute extra_modules.
381 382 383 |
# File 'lib/buildr/ide/idea.rb', line 381 def extra_modules @extra_modules end |
#jdk_version ⇒ Object
390 391 392 |
# File 'lib/buildr/ide/idea.rb', line 390 def jdk_version @jdk_version ||= buildr_project.compile..source || "1.6" end |
#vcs ⇒ Object
Returns the value of attribute vcs.
380 381 382 |
# File 'lib/buildr/ide/idea.rb', line 380 def vcs @vcs end |