Class: Buildr::Run::Base
Overview
Base class for any run provider. Defines most common functionality (things like @lang@, @build?@ and friends).
Direct Known Subclasses
Class Attribute Summary collapse
-
.languages ⇒ Object
Returns the value of attribute languages.
-
.runner_name ⇒ Object
Returns the value of attribute runner_name.
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Class Method Summary collapse
Instance Method Summary collapse
- #build? ⇒ Boolean
-
#initialize(project) ⇒ Base
constructor
A new instance of Base.
- #launch ⇒ Object
Constructor Details
Class Attribute Details
.languages ⇒ Object
Returns the value of attribute languages.
45 46 47 |
# File 'lib/buildr/run.rb', line 45 def languages @languages end |
.runner_name ⇒ Object
Returns the value of attribute runner_name.
45 46 47 |
# File 'lib/buildr/run.rb', line 45 def runner_name @runner_name end |
Instance Attribute Details
Class Method Details
.specify(options) ⇒ Object
47 48 49 50 |
# File 'lib/buildr/run.rb', line 47 def specify() @runner_name ||= [:name] @languages ||= [:languages] end |
.to_sym ⇒ Object
52 53 54 |
# File 'lib/buildr/run.rb', line 52 def to_sym @runner_name || name.split('::').last.downcase.to_sym end |
Instance Method Details
#build? ⇒ Boolean
61 62 63 |
# File 'lib/buildr/run.rb', line 61 def build? true end |
#launch ⇒ Object
65 66 67 |
# File 'lib/buildr/run.rb', line 65 def launch fail 'Not implemented' end |