Class: Guard::Guardfile::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/guardfile/result.rb

Overview

This class is responsible for storing the result of the Guardfile evaluation.

See Also:

  • Dsl

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#clearingObject

Returns the value of attribute clearing.



12
13
14
# File 'lib/guard/guardfile/result.rb', line 12

def clearing
  @clearing
end

Instance Method Details

#directoriesArray<String>

Store directories as an array: ['foo'].

Returns:

  • (Array<String>)


86
87
88
# File 'lib/guard/guardfile/result.rb', line 86

def directories
  @directories ||= []
end

#groupsHash

Store groups as a hash: { frontend: {}, backend: {} }.

Returns:

  • (Hash)


38
39
40
# File 'lib/guard/guardfile/result.rb', line 38

def groups
  @groups ||= { Guard::Internals::Groups::DEFAULT_GROUP => {} }
end

#ignoreArray<Regexp>

Store ignore regexps as an array: [/foo/].

Returns:

  • (Array<Regexp>)


54
55
56
# File 'lib/guard/guardfile/result.rb', line 54

def ignore
  @ignore ||= []
end

#ignore_bangArray<Regexp>

Store ignore! regexps as an array: [/foo/].

Returns:

  • (Array<Regexp>)


62
63
64
# File 'lib/guard/guardfile/result.rb', line 62

def ignore_bang
  @ignore_bang ||= []
end

#interactorHash

Store interactor settings as a hash: { off: {} }.

Returns:

  • (Hash)


30
31
32
# File 'lib/guard/guardfile/result.rb', line 30

def interactor
  @interactor ||= {}
end

#loggerHash

Store logger settings as a hash: { off: {} }.

Returns:

  • (Hash)


70
71
72
# File 'lib/guard/guardfile/result.rb', line 70

def logger
  @logger ||= {}
end

#notificationHash

Store notification settings as a hash: { off: {} }.

Returns:

  • (Hash)


22
23
24
# File 'lib/guard/guardfile/result.rb', line 22

def notification
  @notification ||= {}
end

#plugin_namesObject



14
15
16
# File 'lib/guard/guardfile/result.rb', line 14

def plugin_names
  plugins.map(&:first).map(&:to_sym)
end

#pluginsArray<Hash>

Store plugins as an array of hashes: [{ name: "", options: {} }].

Returns:

  • (Array<Hash>)


46
47
48
# File 'lib/guard/guardfile/result.rb', line 46

def plugins
  @plugins ||= []
end

#scopesHash

Store scopes settings as a hash: { plugins: [:rspec] }.

Returns:

  • (Hash)


78
79
80
# File 'lib/guard/guardfile/result.rb', line 78

def scopes
  @scopes ||= {}
end