Class: Rake::Manifest::Task

Inherits:
TaskLib
  • Object
show all
Defined in:
lib/rake/manifest/task.rb

Overview

Tasks to create and check manifest file

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :manifest) {|_self| ... } ⇒ Task

Returns a new instance of Task.

Yields:

  • (_self)

Yield Parameters:



11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/rake/manifest/task.rb', line 11

def initialize(name = :manifest)
  super()

  self.manifest_file = "Manifest.txt"
  self.patterns = ["**/*"]
  self.name = name

  yield self if block_given?

  namespace name do
    define_tasks
  end
end

Instance Attribute Details

#manifest_fileObject

Returns the value of attribute manifest_file.



9
10
11
# File 'lib/rake/manifest/task.rb', line 9

def manifest_file
  @manifest_file
end

#nameObject

Returns the value of attribute name.



9
10
11
# File 'lib/rake/manifest/task.rb', line 9

def name
  @name
end

#patternsObject

Returns the value of attribute patterns.



9
10
11
# File 'lib/rake/manifest/task.rb', line 9

def patterns
  @patterns
end