Class: Capistrano::TaskDefinition

Inherits:
Object
  • Object
show all
Defined in:
lib/hell/lib/capistrano/task_definition.rb

Instance Method Summary collapse

Instance Method Details

#to_hashObject



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/hell/lib/capistrano/task_definition.rb', line 6

def to_hash
  # Roles should always be a hash, to ease developer frustration
  @options[:roles] = Array(@options[:roles])
  {
    :name => name,
    :fully_qualified_name => fully_qualified_name,
    :description => description == brief_description ? false : description,
    :brief_description => brief_description,
    :options => @options,
  }
end