Class: Dependabot::Bundler::NativeHelpers::BundleCommand
- Inherits:
-
Object
- Object
- Dependabot::Bundler::NativeHelpers::BundleCommand
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/bundler/native_helpers.rb
Constant Summary collapse
- MAX_SECONDS =
1800
- MIN_SECONDS =
60
Instance Method Summary collapse
- #build(script) ⇒ Object
-
#initialize(timeout_seconds) ⇒ BundleCommand
constructor
A new instance of BundleCommand.
Constructor Details
#initialize(timeout_seconds) ⇒ BundleCommand
Returns a new instance of BundleCommand.
21 22 23 |
# File 'lib/dependabot/bundler/native_helpers.rb', line 21 def initialize(timeout_seconds) @timeout_seconds = T.let(clamp(timeout_seconds), Integer) end |
Instance Method Details
#build(script) ⇒ Object
26 27 28 |
# File 'lib/dependabot/bundler/native_helpers.rb', line 26 def build(script) [timeout_command, :ruby, script].compact.join(" ") end |