Module: Tng

Defined in:
lib/tng.rb,
lib/tng/utils.rb,
lib/tng/railtie.rb,
lib/tng/version.rb,
lib/tng/ui/theme.rb,
lib/tng/analyzers/model.rb,
lib/tng/analyzers/other.rb,
lib/tng/api/http_client.rb,
lib/tng/ui/json_session.rb,
lib/tng/ui/go_ui_session.rb,
lib/tng/analyzers/service.rb,
lib/tng/services/installer.rb,
lib/tng/analyzers/controller.rb,
lib/tng/services/file_discovery.rb,
lib/tng/services/repair_service.rb,
lib/tng/services/test_generator.rb,
lib/tng/services/extract_methods.rb,
lib/tng/services/user_app_config.rb,
lib/tng/services/fix_orchestrator.rb,
lib/tng/services/direct_generation.rb,
lib/tng/services/file_type_detector.rb,
lib/generators/tng/install_generator.rb

Defined Under Namespace

Modules: Analyzers, Generators, Services, UI, Utils Classes: Error, HttpClient, Railtie

Constant Summary collapse

VERSION =
"0.5.9"

Class Method Summary collapse

Class Method Details

.api_keyObject



118
119
120
# File 'lib/tng.rb', line 118

def self.api_key
  @config[:api_key]
end

.api_key=(value) ⇒ Object



114
115
116
# File 'lib/tng.rb', line 114

def self.api_key=(value)
  @config[:api_key] = value
end

.authentication_enabledObject



150
151
152
# File 'lib/tng.rb', line 150

def self.authentication_enabled
  @config[:authentication_enabled]
end

.authentication_enabled=(value) ⇒ Object



146
147
148
# File 'lib/tng.rb', line 146

def self.authentication_enabled=(value)
  @config[:authentication_enabled] = value
end

.authentication_methodsObject



142
143
144
# File 'lib/tng.rb', line 142

def self.authentication_methods
  @config[:authentication_methods]
end

.authentication_methods=(value) ⇒ Object



138
139
140
# File 'lib/tng.rb', line 138

def self.authentication_methods=(value)
  @config[:authentication_methods] = value
end

.base_urlObject



126
127
128
# File 'lib/tng.rb', line 126

def self.base_url
  @config[:base_url]
end

.base_url=(value) ⇒ Object



122
123
124
# File 'lib/tng.rb', line 122

def self.base_url=(value)
  @config[:base_url] = value
end

.configObject



110
111
112
# File 'lib/tng.rb', line 110

def self.config
  @config
end

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Tng)

    the object that the method was called on



106
107
108
# File 'lib/tng.rb', line 106

def self.configure
  yield(self) if block_given?
end

.ignore_filesObject



158
159
160
# File 'lib/tng.rb', line 158

def self.ignore_files
  @config[:ignore_files]
end

.ignore_files=(value) ⇒ Object



154
155
156
# File 'lib/tng.rb', line 154

def self.ignore_files=(value)
  @config[:ignore_files] = value
end

.ignore_foldersObject



166
167
168
# File 'lib/tng.rb', line 166

def self.ignore_folders
  @config[:ignore_folders]
end

.ignore_folders=(value) ⇒ Object



162
163
164
# File 'lib/tng.rb', line 162

def self.ignore_folders=(value)
  @config[:ignore_folders] = value
end

.test_helper_pathObject



134
135
136
# File 'lib/tng.rb', line 134

def self.test_helper_path
  @config[:test_helper_path]
end

.test_helper_path=(value) ⇒ Object



130
131
132
# File 'lib/tng.rb', line 130

def self.test_helper_path=(value)
  @config[:test_helper_path] = value
end