-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from krauselukas/unlock
Add Unlock Method
- Loading branch information
Showing
6 changed files
with
2,108 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
lib/obs_github_deployments/deployment/nothing_to_unlock_error.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# frozen_string_literal: true | ||
|
||
module ObsGithubDeployments | ||
class Deployment | ||
class NothingToUnlockError < StandardError | ||
def message | ||
"Current deployment is not locked, nothing to do here" | ||
end | ||
end | ||
end | ||
end |
1,099 changes: 1,099 additions & 0 deletions
1,099
...ment/unlock/with_a_locked_deployment_in_place/unlocks_the_deployment_and_returns_true.yml
Large diffs are not rendered by default.
Oops, something went wrong.
550 changes: 550 additions & 0 deletions
550
...ents_Deployment/unlock/with_an_deployment_not_in_the_locked_state/throws_an_exception.yml
Large diffs are not rendered by default.
Oops, something went wrong.
396 changes: 396 additions & 0 deletions
396
...yments_Deployment/unlock/with_an_deployment_without_any_state_set/throws_an_exception.yml
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters