Skip to content

Commit e7dac68

Browse files
authored
Merge pull request #4 from YakDriver/fix-remove
Fix error thrown when removing files
2 parents d4a1c91 + 64bcde8 commit e7dac68

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 0.2.0
2+
current_version = 0.2.1
33
commit = False
44
tag = False
55
tag_name = {new_version}

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# CHANGE LOG
22

3+
## 0.2.1 - 2019.04.25
4+
5+
* Fix inconsequential error thrown when removing files
6+
7+
## 0.2.0 - 2019.04.25
8+
9+
* Add capability to delete extra working files
10+
311
## 0.1.3 - 2019.04.17
412

513
* Add module stub capability

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
![scratch relax tv](https://github.com/YakDriver/scratchrelaxtv/raw/master/assets/srt.gif "Extract HCL Vars")
22

3-
Terraform module development tool. Extract variables from `variables.tf` files
3+
<p>
4+
<a href="./LICENSE" alt="License">
5+
<img src="https://img.shields.io/github/license/YakDriver/scratchrelaxtv.svg" /></a>
6+
<a href="http://travis-ci.org/YakDriver/scratchrelaxtv" alt="Build status">
7+
<img src="https://travis-ci.org/YakDriver/scratchrelaxtv.svg?branch=master" /></a>
8+
<a href="https://pypi.python.org/pypi/scratchrelaxtv" alt="Python versions">
9+
<img src="https://img.shields.io/pypi/pyversions/scratchrelaxtv.svg" /></a>
10+
<a href="https://pypi.python.org/pypi/scratchrelaxtv" alt="Version">
11+
<img src="https://img.shields.io/pypi/v/scratchrelaxtv.svg" /></a>
12+
</p>
13+
14+
Terraform module development tool.
15+
16+
1. Extract variables from `main.tf` and create `variables.tf` files
17+
1. Create a module use stub from a `variables.tf` file
18+
1. Delete extra *scratchrelaxtv* files
419

520

621
## simply

scratchrelaxtv/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import re
1919

2020

21-
__version__ = "0.2.0"
21+
__version__ = "0.2.1"
2222
EXIT_OKAY = 0
2323
EXIT_NOT_OKAY = 1
2424

@@ -38,6 +38,7 @@ def remove_files():
3838
for root, _, files in os.walk(os.getcwd()):
3939
for file in filter(lambda x: re.match(pattern, x), files):
4040
os.remove(os.path.join(root, file))
41+
logger.info("removed file: %s", os.path.join(root, file))
4142

4243

4344
class BassExtractor():

scratchrelaxtv/cli.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ def main():
4949
extractor = None
5050
if args.remove:
5151
scratchrelaxtv.remove_files()
52+
sys.exit(scratchrelaxtv.EXIT_OKAY)
5253
elif not args.modstub:
5354
extractor = scratchrelaxtv.VarExtractor(args)
5455
else:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name = scratchrelaxtv
33
description = Terraform developer tool to extract variables and create variables.tf files.
44
long_description = file: README.md, CHANGELOG.md
55
long_description_content_type = text/markdown
6-
version = 0.2.0
6+
version = 0.2.1
77
author = YakDriver
88
author_email = [email protected]
99
url = https://github.com/YakDriver/scratchrelaxtv

0 commit comments

Comments
 (0)