Module: CaptiveStackDetector

Defined in:
lib/captive_stack_detector.rb,
lib/captive_stack_detector/types.rb,
lib/captive_stack_detector/version.rb,
lib/captive_stack_detector/file_reader.rb,
lib/captive_stack_detector/env_vars_scanner.rb,
lib/captive_stack_detector/gemfile_analyzer.rb,
lib/captive_stack_detector/github_api_client.rb,
lib/captive_stack_detector/js_stack_detector.rb,
lib/captive_stack_detector/file_content_parser.rb,
lib/captive_stack_detector/rails_stack_detector.rb,
lib/captive_stack_detector/node_version_detector.rb,
lib/captive_stack_detector/package_json_analyzer.rb,
lib/captive_stack_detector/ruby_version_detector.rb

Defined Under Namespace

Modules: EnvVarsScanner Classes: FileContentParser, FileReader, GemfileAnalyzer, GithubApiClient, GithubFileReader, JsStackDetector, LocalFileReader, NodeVersionDetector, PackageJsonAnalyzer, RailsStackDetector, Result, RubyVersionDetector, Runtime, Services, Worker

Constant Summary collapse

UnsupportedStack =
Class.new(StandardError)
VERSION =
"0.1.1"

Class Method Summary collapse

Class Method Details

.detect(local_path: nil, github_token: nil, repo: nil) ⇒ Object



11
12
13
14
# File 'lib/captive_stack_detector.rb', line 11

def self.detect(local_path: nil, github_token: nil, repo: nil)
  reader = FileReader.build(local_path: local_path, github_token: github_token, repo: repo)
  detect_from(reader)
end