Class: RakeBubbler::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rake_bubbler/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#conditions=(value) ⇒ Object (writeonly)

Sets the attribute conditions

Parameters:

  • value

    the value to set the attribute conditions to.



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

Parameters:

  • value

    the value to set the attribute executed to.



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

Parameters:

  • value

    the value to set the attribute tasks to.



3
4
5
# File 'lib/rake_bubbler/config.rb', line 3

def tasks=(value)
  @tasks = value
end

Instance Method Details

#call_conditionsObject



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

Returns:

  • (Boolean)


9
10
11
# File 'lib/rake_bubbler/config.rb', line 9

def tasks_include?(name)
  @tasks.respond_to?(:include?) && @tasks.include?(name)
end