Class: Quality::Rake::Task
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- Quality::Rake::Task
- Defined in:
- lib/quality/rake/task.rb
Overview
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#globber ⇒ Object
readonly
Returns the value of attribute globber.
Instance Method Summary collapse
-
#initialize(dsl: ::Rake::Task, cmd_runner: Kernel, count_file: File, count_io: IO, gem_spec: Gem::Specification, quality_checker_class: Quality::QualityChecker, which: Which.new, config: Quality::Config.new) {|@config| ... } ⇒ Task
constructor
Defines a new task, using the name
name
.
Constructor Details
#initialize(dsl: ::Rake::Task, cmd_runner: Kernel, count_file: File, count_io: IO, gem_spec: Gem::Specification, quality_checker_class: Quality::QualityChecker, which: Which.new, config: Quality::Config.new) {|@config| ... } ⇒ Task
Defines a new task, using the name name
.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/quality/rake/task.rb', line 45 def initialize(dsl: ::Rake::Task, cmd_runner: Kernel, count_file: File, count_io: IO, gem_spec: Gem::Specification, quality_checker_class: Quality::QualityChecker, which: Which.new, config: Quality::Config.new) @dsl = dsl @cmd_runner = cmd_runner @config = config yield @config if block_given? @runner = Quality::Runner.new(@config, gem_spec: gem_spec, quality_checker_class: quality_checker_class, count_io: count_io, count_file: count_file, globber: globber, which: which) define end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
69 70 71 |
# File 'lib/quality/rake/task.rb', line 69 def config @config end |
#globber ⇒ Object (readonly)
Returns the value of attribute globber.
69 70 71 |
# File 'lib/quality/rake/task.rb', line 69 def globber @globber end |