Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Http Backend Pass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Akshay Mankar
Terraform Http Backend Pass
Commits
91d1ea5b
Commit
91d1ea5b
authored
4 years ago
by
Akshay Mankar
Browse files
Options
Downloads
Patches
Plain Diff
GetState: Fix existence check
parent
94e1cf69
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
src/Terraform/HttpBackend/Pass/App.hs
+2
-1
2 additions, 1 deletion
src/Terraform/HttpBackend/Pass/App.hs
with
6 additions
and
1 deletion
CHANGELOG.md
+
4
−
0
View file @
91d1ea5b
# Revision history for terraform-http-backend-pass
# Revision history for terraform-http-backend-pass
## Unreleased changes
*
GetState: Fix existence check.
## 0.1.0.0 -- 2021-02-28
## 0.1.0.0 -- 2021-02-28
*
First version. Released on an unsuspecting world.
*
First version. Released on an unsuspecting world.
This diff is collapsed.
Click to expand it.
src/Terraform/HttpBackend/Pass/App.hs
+
2
−
1
View file @
91d1ea5b
...
@@ -51,7 +51,8 @@ instance (Monad m, MonadIO m) => MonadPass (AppT m) where
...
@@ -51,7 +51,8 @@ instance (Monad m, MonadIO m) => MonadPass (AppT m) where
Shelly
.
run_
"pass"
[
"rm"
,
name
]
Shelly
.
run_
"pass"
[
"rm"
,
name
]
exists
name
=
do
exists
name
=
do
Env
{
..
}
<-
ask
Env
{
..
}
<-
ask
liftIO
$
doesFileExist
(
directory
<>
"/"
<>
Text
.
unpack
name
)
let
path
=
directory
<>
"/"
<>
Text
.
unpack
name
<>
".gpg"
liftIO
$
doesFileExist
path
runAppT
::
Env
->
AppT
m
a
->
m
a
runAppT
::
Env
->
AppT
m
a
->
m
a
runAppT
env
(
AppT
r
)
=
runReaderT
r
env
runAppT
env
(
AppT
r
)
=
runReaderT
r
env
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment