Class: FlexManifest::Task

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

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:



10
11
12
13
14
15
16
17
18
19
# File 'lib/shed/rake/manifest.rb', line 10

def initialize name = :manifest
  @name = name
  @output = 'manifest.xml'
  @filter = ''
  @silent = false

  yield self if block_given?

  define
end

Instance Attribute Details

#filterObject

Returns the value of attribute filter.



5
6
7
# File 'lib/shed/rake/manifest.rb', line 5

def filter
  @filter
end

#outputObject

Returns the value of attribute output.



5
6
7
# File 'lib/shed/rake/manifest.rb', line 5

def output
  @output
end

#silentObject

Returns the value of attribute silent.



5
6
7
# File 'lib/shed/rake/manifest.rb', line 5

def silent
  @silent
end

#srcObject

Returns the value of attribute src.



5
6
7
# File 'lib/shed/rake/manifest.rb', line 5

def src
  @src
end

Instance Method Details

#defineObject



21
22
23
24
25
26
# File 'lib/shed/rake/manifest.rb', line 21

def define
  desc "Generate a manifest file "
  task @name do
    Manifest.new(to_hash)
  end
end