Class: YamlLint::RakeTask

Inherits:
Rake::TaskLib
  • Object
show all
Defined in:
lib/yamllint/rake_task.rb

Overview

RakeTast execution

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = :yamllint) {|_self| ... } ⇒ RakeTask

Returns a new instance of RakeTask.

Yields:

  • (_self)

Yield Parameters:



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

#debugObject

Returns the value of attribute debug.



17
18
19
# File 'lib/yamllint/rake_task.rb', line 17

def debug
  @debug
end

#disable_ext_checkObject

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_pathsObject

Returns the value of attribute exclude_paths.



13
14
15
# File 'lib/yamllint/rake_task.rb', line 13

def exclude_paths
  @exclude_paths
end

#extensionsObject

Returns the value of attribute extensions.



16
17
18
# File 'lib/yamllint/rake_task.rb', line 16

def extensions
  @extensions
end

#fail_on_errorObject

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

#nameObject

Returns the value of attribute name.



11
12
13
# File 'lib/yamllint/rake_task.rb', line 11

def name
  @name
end

#pathsObject

Returns the value of attribute paths.



12
13
14
# File 'lib/yamllint/rake_task.rb', line 12

def paths
  @paths
end