Afterlife
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file lib/afterlife
. To experiment with that code, run bin/console
for an interactive prompt.
TODO: Delete this and the text abovxe, and describe your gem
Installation
- Execute
bin/install
in the repository root - Put a
config.yml
on ~/.afterlife/config.yml based on the AWS credentials found on mifiel's bitwarden vault - Install AWS CLI following the official guide.
Usage
Run afterlife help
for a list of all available commands
About CDN
Logs can be found on ~/.afterlife/logs/cdn.log
Running afterlife cdn start
will run the CDN web server in the background. Running in foreground using afterlife cdn start --foreground
will display errors and content normally found in logs in console instead.
About Clickup module
Usage example:
afterlife clickup get-commits <revision> | afterlife clickup extract-ids | afterlife clickup update-status 'ready for qa'
This will output something like:
Updating 1 tasks to 'trunk merged'
Moved 1 tasks, with ids: 86dxbp9d6
The above line does the following:
- Prints all the commits betweed the specified
and HEAD. - Extracts the clickup ids from the previous output.
- Moves the ids extracted from the previous output to 'ready for qa' status.
To not do this blindly, you can run just afterlife clickup get-commits <revision> | afterlife
clickup extract-ids
to review if the tasks being moved are correct. But the update-status
in the
full command will print the list of moved or ignored tasks anyway.
Also, to easily run these commands, is recommended to setup an alias:
For bash or zsh:
alias ci="afterlife clickup"
For fish:
alias ci 'afterlife clickup'
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.
Publishing
This gem is published on rubygems. To publish there, just:
- Do a version bump in
lib/afterlife/version.rb
. - Execute
bundle exec rake release
. This will ask you for rubygems credentials. You'll access, ask Genaro for it.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/afterlife.