Class: RakeBubbler::Config
- Inherits:
-
Object
- Object
- RakeBubbler::Config
- Defined in:
- lib/rake_bubbler/config.rb
Instance Attribute Summary collapse
-
#conditions ⇒ Object
writeonly
Sets the attribute conditions.
-
#executed ⇒ Object
writeonly
Sets the attribute executed.
-
#tasks ⇒ Object
writeonly
Sets the attribute tasks.
Instance Method Summary collapse
- #call_conditions ⇒ Object
- #call_executed(name, duration, output, started, error) ⇒ Object
- #tasks_include?(name) ⇒ Boolean
Instance Attribute Details
#conditions=(value) ⇒ Object (writeonly)
Sets the attribute conditions
3 4 5 |
# File 'lib/rake_bubbler/config.rb', line 3 def conditions=(value) @conditions = value end |
#executed=(value) ⇒ Object (writeonly)
Sets the attribute executed
3 4 5 |
# File 'lib/rake_bubbler/config.rb', line 3 def executed=(value) @executed = value end |
#tasks=(value) ⇒ Object (writeonly)
Sets the attribute tasks
3 4 5 |
# File 'lib/rake_bubbler/config.rb', line 3 def tasks=(value) @tasks = value end |
Instance Method Details
#call_conditions ⇒ Object
13 14 15 |
# File 'lib/rake_bubbler/config.rb', line 13 def call_conditions !@conditions.respond_to?(:call) || @conditions.call end |
#call_executed(name, duration, output, started, error) ⇒ Object
5 6 7 |
# File 'lib/rake_bubbler/config.rb', line 5 def call_executed(name, duration, output, started, error) @executed.respond_to?(:call) && @executed.call(name, duration, output, started, error) end |
#tasks_include?(name) ⇒ Boolean
9 10 11 |
# File 'lib/rake_bubbler/config.rb', line 9 def tasks_include?(name) @tasks.respond_to?(:include?) && @tasks.include?(name) end |