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.
46 47 48 |
# File 'lib/buildr/run.rb', line 46 def languages @languages end |
.runner_name ⇒ Object
Returns the value of attribute runner_name.
46 47 48 |
# File 'lib/buildr/run.rb', line 46 def runner_name @runner_name end |
Instance Attribute Details
Class Method Details
.specify(options) ⇒ Object
48 49 50 51 |
# File 'lib/buildr/run.rb', line 48 def specify() @runner_name ||= [:name] @languages ||= [:languages] end |
.to_sym ⇒ Object
53 54 55 |
# File 'lib/buildr/run.rb', line 53 def to_sym @runner_name || name.split('::').last.downcase.to_sym end |
Instance Method Details
#build? ⇒ Boolean
62 63 64 |
# File 'lib/buildr/run.rb', line 62 def build? true end |
#launch ⇒ Object
66 67 68 |
# File 'lib/buildr/run.rb', line 66 def launch fail 'Not implemented' end |