Skip to content

Commit c8baa5a

Browse files
committed
CM-42089 fix ruff
1 parent ce2c161 commit c8baa5a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

cycode/cli/files_collector/sca/ruby/restore_ruby_dependencies.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import os
22
from typing import List, Optional
33

4-
import click
5-
64
from cycode.cli.files_collector.sca.base_restore_dependencies import BaseRestoreDependencies
75
from cycode.cli.models import Document
86

@@ -11,14 +9,11 @@
119

1210

1311
class RestoreRubyDependencies(BaseRestoreDependencies):
14-
def __init__(self, context: click.Context, is_git_diff: bool, command_timeout: int) -> None:
15-
super().__init__(context, is_git_diff, command_timeout)
16-
1712
def is_project(self, document: Document) -> bool:
1813
return any(document.path.endswith(ext) for ext in RUBY_PROJECT_FILE_EXTENSIONS)
1914

2015
def get_commands(self, manifest_file_path: str) -> List[List[str]]:
21-
return [['/opt/homebrew/opt/ruby/bin/bundle', '--quiet']]
16+
return [['bundle', '--quiet']]
2217

2318
def get_lock_file_name(self) -> str:
2419
return RUBY_LOCK_FILE_NAME

0 commit comments

Comments
 (0)