Class: Kleiber::Performer
- Inherits:
-
Object
- Object
- Kleiber::Performer
- Defined in:
- lib/kleiber/performer.rb
Overview
Provides api for symphony perphomance
Instance Attribute Summary collapse
-
#projects ⇒ Object
readonly
Returns the value of attribute projects.
-
#symphony ⇒ Object
readonly
Returns the value of attribute symphony.
Instance Method Summary collapse
-
#initialize(symphony, projects, options) ⇒ Performer
constructor
A new instance of Performer.
-
#task_names ⇒ Array
Returns array of task names.
-
#tasks ⇒ Hash
Returns tasks to run with command.
Constructor Details
#initialize(symphony, projects, options) ⇒ Performer
Returns a new instance of Performer.
8 9 10 11 12 |
# File 'lib/kleiber/performer.rb', line 8 def initialize(symphony, projects, ) @symphony = symphony @projects = projects @tasks = [:tasks] end |
Instance Attribute Details
#projects ⇒ Object (readonly)
Returns the value of attribute projects.
7 8 9 |
# File 'lib/kleiber/performer.rb', line 7 def projects @projects end |
#symphony ⇒ Object (readonly)
Returns the value of attribute symphony.
7 8 9 |
# File 'lib/kleiber/performer.rb', line 7 def symphony @symphony end |
Instance Method Details
#task_names ⇒ Array
Returns array of task names
27 28 29 |
# File 'lib/kleiber/performer.rb', line 27 def task_names @tasks ? @tasks.split(':') : [] end |