Class: YamlLint::RakeTask
- Inherits:
-
Rake::TaskLib
- Object
- Rake::TaskLib
- YamlLint::RakeTask
- Defined in:
- lib/yamllint/rake_task.rb
Overview
RakeTast execution
Instance Attribute Summary collapse
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#disable_ext_check ⇒ Object
Returns the value of attribute disable_ext_check.
-
#exclude_paths ⇒ Object
Returns the value of attribute exclude_paths.
-
#extensions ⇒ Object
Returns the value of attribute extensions.
-
#fail_on_error ⇒ Object
Returns the value of attribute fail_on_error.
-
#name ⇒ Object
Returns the value of attribute name.
-
#paths ⇒ Object
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(name = :yamllint) {|_self| ... } ⇒ RakeTask
constructor
A new instance of RakeTask.
Constructor Details
#initialize(name = :yamllint) {|_self| ... } ⇒ RakeTask
Returns a new instance of RakeTask.
19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/yamllint/rake_task.rb', line 19 def initialize(name = :yamllint) @name = name @fail_on_error = true @disable_ext_check = false @extensions = nil @debug = false yield self if block_given? define_task end |
Instance Attribute Details
#debug ⇒ Object
Returns the value of attribute debug.
17 18 19 |
# File 'lib/yamllint/rake_task.rb', line 17 def debug @debug end |
#disable_ext_check ⇒ Object
Returns the value of attribute disable_ext_check.
15 16 17 |
# File 'lib/yamllint/rake_task.rb', line 15 def disable_ext_check @disable_ext_check end |
#exclude_paths ⇒ Object
Returns the value of attribute exclude_paths.
13 14 15 |
# File 'lib/yamllint/rake_task.rb', line 13 def exclude_paths @exclude_paths end |
#extensions ⇒ Object
Returns the value of attribute extensions.
16 17 18 |
# File 'lib/yamllint/rake_task.rb', line 16 def extensions @extensions end |
#fail_on_error ⇒ Object
Returns the value of attribute fail_on_error.
14 15 16 |
# File 'lib/yamllint/rake_task.rb', line 14 def fail_on_error @fail_on_error end |
#name ⇒ Object
Returns the value of attribute name.
11 12 13 |
# File 'lib/yamllint/rake_task.rb', line 11 def name @name end |
#paths ⇒ Object
Returns the value of attribute paths.
12 13 14 |
# File 'lib/yamllint/rake_task.rb', line 12 def paths @paths end |