class Ghost::Cli::Task
Attributes
name[RW]
out[RW]
store[RW]
Public Class Methods
desc(str = nil)
click to toggle source
# File lib/ghost/cli/task.rb, line 11 def desc(str = nil) if str @desc = str else @desc end end
help() { || ... }
click to toggle source
# File lib/ghost/cli/task.rb, line 19 def help if block_given? @help = yield.unindent else @help end end
new(store, out)
click to toggle source
# File lib/ghost/cli/task.rb, line 28 def initialize(store, out) self.store = store self.out = out end
Public Instance Methods
description()
click to toggle source
# File lib/ghost/cli/task.rb, line 34 def description; end
help()
click to toggle source
# File lib/ghost/cli/task.rb, line 35 def help; end
perform(*)
click to toggle source
# File lib/ghost/cli/task.rb, line 33 def perform(*); end
Private Instance Methods
abort(*args)
click to toggle source
# File lib/ghost/cli/task.rb, line 47 def abort(*args) out.puts(*args) exit 1 end
print(*args)
click to toggle source
# File lib/ghost/cli/task.rb, line 43 def print(*args) out.print(*args) end
puts(*args)
click to toggle source
# File lib/ghost/cli/task.rb, line 39 def puts(*args) out.puts(*args) end