Class: FlexManifest::Task
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- FlexManifest::Task
- Defined in:
- lib/shed/rake/manifest.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
Returns the value of attribute filter.
-
#output ⇒ Object
Returns the value of attribute output.
-
#silent ⇒ Object
Returns the value of attribute silent.
-
#src ⇒ Object
Returns the value of attribute src.
Instance Method Summary collapse
- #define ⇒ Object
-
#initialize(name = :manifest) {|_self| ... } ⇒ Task
constructor
A new instance of Task.
Constructor Details
#initialize(name = :manifest) {|_self| ... } ⇒ Task
Returns a new instance of Task.
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
#filter ⇒ Object
Returns the value of attribute filter.
5 6 7 |
# File 'lib/shed/rake/manifest.rb', line 5 def filter @filter end |
#output ⇒ Object
Returns the value of attribute output.
5 6 7 |
# File 'lib/shed/rake/manifest.rb', line 5 def output @output end |
#silent ⇒ Object
Returns the value of attribute silent.
5 6 7 |
# File 'lib/shed/rake/manifest.rb', line 5 def silent @silent end |
#src ⇒ Object
Returns the value of attribute src.
5 6 7 |
# File 'lib/shed/rake/manifest.rb', line 5 def src @src end |
Instance Method Details
#define ⇒ Object
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 |