Class: Ghost::Cli::Task

Inherits:
Object
  • Object
show all
Defined in:
lib/ghost/cli/task.rb

Class Attribute Summary collapse

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

.nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/ghost/cli/task.rb', line 9

def name
  @name
end

Instance Attribute Details

#outObject

Returns the value of attribute out.



6
7
8
# File 'lib/ghost/cli/task.rb', line 6

def out
  @out
end

#storeObject

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

.helpObject



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

#descriptionObject



34
# File 'lib/ghost/cli/task.rb', line 34

def description; end

#helpObject



35
# File 'lib/ghost/cli/task.rb', line 35

def help; end

#performObject



33
# File 'lib/ghost/cli/task.rb', line 33

def perform(*); end