Skip to content

Conversation

@keigohtr
Copy link
Member

What is this PR for?

Add rekcurd command line script to generate Rekcurd application template.

$ pip install -e .
$ rekcurd startapp sampleapp

This PR includes

  • Add command line script code
  • Add template
  • Remove dummy_app.py and use template/app.py-tpl for the unittesting

What type of PR is it?

Feature

What is the issue?

N/A

How should this be tested?

$ python -m unittest

@codecov-io
Copy link

codecov-io commented Feb 15, 2019

Codecov Report

Merging #37 into master will decrease coverage by 2.18%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #37      +/-   ##
==========================================
- Coverage    91.3%   89.12%   -2.19%     
==========================================
  Files          14       14              
  Lines         794      809      +15     
==========================================
- Hits          725      721       -4     
- Misses         69       88      +19
Impacted Files Coverage Δ
rekcurd/data_servers/local_handler.py 90.9% <100%> (ø) ⬆️
rekcurd/core/rekcurd_worker.py 76.08% <100%> (-8.44%) ⬇️
rekcurd/utils/rekcurd_config.py 86.73% <50%> (-9.97%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d3fa3b8...26d0063. Read the comment docs.

Copy link
Member

@yuki-mt yuki-mt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made one trivial comment, but basically LGTM!

@keigohtr
Copy link
Member Author

@yuki-mt Thank you reviewing!
I have fixed. Could you check it again please?

self.APPLICATION_NAME = os.getenv("REKCURD_APPLICATION_NAME")
self.SERVICE_NAME = os.getenv("REKCURD_SERVICE_NAME")
self.SERVICE_PORT = int(os.getenv("REKCURD_SERVICE_PORT", "5000"))
self.SERVICE_PORT = int(os.getenv("REKCURD_SERVICE_PORT", "{}".format(self.__SERVICE_DEFAULT_PORT)))
Copy link
Member

@yuki-mt yuki-mt Feb 21, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot this one also can be str(self. __SERVICE_DEFAULT_PORT) ...

@keigohtr keigohtr merged commit a3e6bda into master Feb 21, 2019
@keigohtr keigohtr deleted the feature/add-template-generate-script branch February 21, 2019 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants