Class: Buildr::Shell::Base
Overview
Base class for any shell provider.
Direct Known Subclasses
Groovy::GroovySH, Buildr::Scala::ScalaShell, BeanShell, Clojure, JIRB
Class Attribute Summary collapse
-
.languages ⇒ Object
Returns the value of attribute languages.
-
.shell_name ⇒ Object
Returns the value of attribute shell_name.
Instance Attribute Summary collapse
-
#project ⇒ Object
readonly
:nodoc:.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(project) ⇒ Base
constructor
A new instance of Base.
- #launch(task) ⇒ Object
Constructor Details
Class Attribute Details
.languages ⇒ Object
Returns the value of attribute languages.
75 76 77 |
# File 'lib/buildr/shell.rb', line 75 def languages @languages end |
.shell_name ⇒ Object
Returns the value of attribute shell_name.
75 76 77 |
# File 'lib/buildr/shell.rb', line 75 def shell_name @shell_name end |
Instance Attribute Details
Class Method Details
.specify(options) ⇒ Object
77 78 79 80 |
# File 'lib/buildr/shell.rb', line 77 def specify() @shell_name ||= [:name] @languages ||= [:languages] end |
.to_sym ⇒ Object
82 83 84 |
# File 'lib/buildr/shell.rb', line 82 def to_sym @shell_name || name.split('::').last.downcase.to_sym end |
Instance Method Details
#launch(task) ⇒ Object
91 92 93 |
# File 'lib/buildr/shell.rb', line 91 def launch(task) fail 'Not implemented' end |