Class: Appydave::Tools::AppContext::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/appydave/tools/app_context/options.rb

Overview

Options struct for app context query tool

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeOptions

Returns a new instance of Options.



12
13
14
15
16
17
18
19
20
# File 'lib/appydave/tools/app_context/options.rb', line 12

def initialize
  @app_names = []
  @glob_names = []
  @pattern_filter = nil
  @meta = false
  @list = false
  @list_apps = false
  @debug_level = 'none'
end

Instance Attribute Details

#app_namesObject

Returns the value of attribute app_names.



8
9
10
# File 'lib/appydave/tools/app_context/options.rb', line 8

def app_names
  @app_names
end

#debug_levelObject

Returns the value of attribute debug_level.



8
9
10
# File 'lib/appydave/tools/app_context/options.rb', line 8

def debug_level
  @debug_level
end

#glob_namesObject

Returns the value of attribute glob_names.



8
9
10
# File 'lib/appydave/tools/app_context/options.rb', line 8

def glob_names
  @glob_names
end

#listObject

Returns the value of attribute list.



8
9
10
# File 'lib/appydave/tools/app_context/options.rb', line 8

def list
  @list
end

#list_appsObject

Returns the value of attribute list_apps.



8
9
10
# File 'lib/appydave/tools/app_context/options.rb', line 8

def list_apps
  @list_apps
end

#metaObject

Returns the value of attribute meta.



8
9
10
# File 'lib/appydave/tools/app_context/options.rb', line 8

def meta
  @meta
end

#pattern_filterObject

Returns the value of attribute pattern_filter.



8
9
10
# File 'lib/appydave/tools/app_context/options.rb', line 8

def pattern_filter
  @pattern_filter
end

Instance Method Details

#query?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/appydave/tools/app_context/options.rb', line 22

def query?
  app_names.any? || !pattern_filter.nil?
end