Class: CF::Dots::Skipper

Inherits:
Object
  • Object
show all
Defined in:
lib/cf/cli/dots.rb

Instance Method Summary collapse

Constructor Details

#initialize(&ret) ⇒ Skipper

Returns a new instance of Skipper.



7
8
9
# File 'lib/cf/cli/dots.rb', line 7

def initialize(&ret)
  @return = ret
end

Instance Method Details

#fail(&callback) ⇒ Object



19
20
21
# File 'lib/cf/cli/dots.rb', line 19

def fail(&callback)
  @return.call("FAILED", :red, callback)
end

#give_up(&callback) ⇒ Object



15
16
17
# File 'lib/cf/cli/dots.rb', line 15

def give_up(&callback)
  @return.call("GAVE UP", :red, callback)
end

#skip(&callback) ⇒ Object



11
12
13
# File 'lib/cf/cli/dots.rb', line 11

def skip(&callback)
  @return.call("SKIPPED", :yellow, callback)
end