Class: RakeGraph::TaskNode
Instance Attribute Summary collapse
-
#task ⇒ Object
readonly
Returns the value of attribute task.
Attributes inherited from Node
Instance Method Summary collapse
- #fillcolor ⇒ Object
-
#initialize(task) ⇒ TaskNode
constructor
A new instance of TaskNode.
- #label ⇒ Object
- #shape ⇒ Object
Methods inherited from Node
Constructor Details
Instance Attribute Details
#task ⇒ Object (readonly)
Returns the value of attribute task.
96 97 98 |
# File 'lib/azkaban-rb/visualization.rb', line 96 def task @task end |
Instance Method Details
#fillcolor ⇒ Object
112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/azkaban-rb/visualization.rb', line 112 def fillcolor case @type when 'Azkaban::PigJob' return '#e7a5a5' when 'Azkaban::JavaJob' return '#E7C6A5' when 'Azkaban::CommandJob' return '#e7e6a5' end return "" end |
#label ⇒ Object
103 104 105 106 |
# File 'lib/azkaban-rb/visualization.rb', line 103 def label label = "<#{@task}<br/>#{@task.job.uses_arg}>" return label.to_sym end |
#shape ⇒ Object
108 109 110 |
# File 'lib/azkaban-rb/visualization.rb', line 108 def shape return :ellipse end |