Class: Ghost::Cli::Task
- Inherits:
-
Object
- Object
- Ghost::Cli::Task
- Defined in:
- lib/ghost/cli/task.rb
Class Attribute Summary collapse
-
.name ⇒ Object
Returns the value of attribute name.
Instance Attribute Summary collapse
-
#out ⇒ Object
Returns the value of attribute out.
-
#store ⇒ Object
Returns the value of attribute store.
Class Method Summary collapse
Instance Method Summary collapse
- #description ⇒ Object
- #help ⇒ Object
-
#initialize(store, out) ⇒ Task
constructor
A new instance of Task.
- #perform ⇒ Object
Constructor Details
#initialize(store, out) ⇒ Task
Returns a new instance of Task.
28 29 30 31 |
# File 'lib/ghost/cli/task.rb', line 28 def initialize(store, out) self.store = store self.out = out end |
Class Attribute Details
.name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/ghost/cli/task.rb', line 9 def name @name end |
Instance Attribute Details
#out ⇒ Object
Returns the value of attribute out.
6 7 8 |
# File 'lib/ghost/cli/task.rb', line 6 def out @out end |
#store ⇒ Object
Returns the value of attribute store.
6 7 8 |
# File 'lib/ghost/cli/task.rb', line 6 def store @store end |
Class Method Details
.desc(str = nil) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/ghost/cli/task.rb', line 11 def desc(str = nil) if str @desc = str else @desc end end |
.help ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/ghost/cli/task.rb', line 19 def help if block_given? @help = yield.unindent else @help end end |
Instance Method Details
#description ⇒ Object
34 |
# File 'lib/ghost/cli/task.rb', line 34 def description; end |
#help ⇒ Object
35 |
# File 'lib/ghost/cli/task.rb', line 35 def help; end |
#perform ⇒ Object
33 |
# File 'lib/ghost/cli/task.rb', line 33 def perform(*); end |