Class: Piggly::AbstractTask
- Defined in:
- lib/piggly/task.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cache_root ⇒ Object
List of procedure names or regular expressions, match all by default.
-
#name ⇒ Object
Name of the test task.
-
#piggly_opts ⇒ Object
List of procedure names or regular expressions, match all by default.
-
#piggly_path ⇒ Object
List of procedure names or regular expressions, match all by default.
-
#procedures ⇒ Object
List of procedure names or regular expressions, match all by default.
-
#ruby_opts ⇒ Object
Name of the test task.
-
#verbose ⇒ Object
Name of the test task.
Instance Method Summary collapse
-
#initialize(name = :piggly) {|_self| ... } ⇒ AbstractTask
constructor
A new instance of AbstractTask.
Constructor Details
#initialize(name = :piggly) {|_self| ... } ⇒ AbstractTask
Returns a new instance of AbstractTask.
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/piggly/task.rb', line 19 def initialize(name = :piggly) @name = name @verbose = false @ruby_opts = [] @procedures = [] @cache_root = nil @piggly_path = File.("#{File.dirname(__FILE__)}/../../bin/piggly") @piggly_opts = [] yield self if block_given? define end |
Instance Attribute Details
#cache_root ⇒ Object
List of procedure names or regular expressions, match all by default
14 15 16 |
# File 'lib/piggly/task.rb', line 14 def cache_root @cache_root end |
#name ⇒ Object
Name of the test task
10 11 12 |
# File 'lib/piggly/task.rb', line 10 def name @name end |
#piggly_opts ⇒ Object
List of procedure names or regular expressions, match all by default
14 15 16 |
# File 'lib/piggly/task.rb', line 14 def piggly_opts @piggly_opts end |
#piggly_path ⇒ Object
List of procedure names or regular expressions, match all by default
14 15 16 |
# File 'lib/piggly/task.rb', line 14 def piggly_path @piggly_path end |
#procedures ⇒ Object
List of procedure names or regular expressions, match all by default
14 15 16 |
# File 'lib/piggly/task.rb', line 14 def procedures @procedures end |
#ruby_opts ⇒ Object
Name of the test task
10 11 12 |
# File 'lib/piggly/task.rb', line 10 def ruby_opts @ruby_opts end |
#verbose ⇒ Object
Name of the test task
10 11 12 |
# File 'lib/piggly/task.rb', line 10 def verbose @verbose end |