Class: Dependabot::NpmAndYarn::FileUpdater::PnpmWorkspaceUpdater
- Inherits:
-
Object
- Object
- Dependabot::NpmAndYarn::FileUpdater::PnpmWorkspaceUpdater
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/npm_and_yarn/file_updater/pnpm_workspace_updater.rb
Instance Method Summary collapse
-
#initialize(workspace_file:, dependencies:) ⇒ PnpmWorkspaceUpdater
constructor
A new instance of PnpmWorkspaceUpdater.
- #updated_pnpm_workspace ⇒ Object
Constructor Details
#initialize(workspace_file:, dependencies:) ⇒ PnpmWorkspaceUpdater
Returns a new instance of PnpmWorkspaceUpdater.
21 22 23 24 |
# File 'lib/dependabot/npm_and_yarn/file_updater/pnpm_workspace_updater.rb', line 21 def initialize(workspace_file:, dependencies:) @dependencies = dependencies @workspace_file = workspace_file end |
Instance Method Details
#updated_pnpm_workspace ⇒ Object
27 28 29 30 31 |
# File 'lib/dependabot/npm_and_yarn/file_updater/pnpm_workspace_updater.rb', line 27 def updated_pnpm_workspace updated_file = workspace_file.dup updated_file.content = updated_pnpm_workspace_content updated_file end |