Skip to content

jumbosushi/ubcbooker

Repository files navigation

Ubcbooker

CLI tool to book project rooms in UBC

Demo

Installation

Install it as:

$ gem install ubcbooker

For use in your application, add this line to your Gemfile:

gem 'ubcbooker'

And then execute:

$ bundle

Usage

# Book a room in CS with the name 'Study Group' from 11am to 1pm on March 5th

$ ubcbooker -b cs -n 'Study Group' -d 03/05 -t 11:00-13:00

When you first run the command it will ask for your CWL account auth info. This is saved locally within keyring (if you're using linux) or keychain (if you're using osx) through keyring gem. Note that saving password is not supported on Windows at the moment.

Run ubcbooker -u to update the CWL auth info.

$ ubcbooker --help

Usage: ubcbooker [options]
    -b, --building BUILDING          Specify which department to book rooms from
    -d, --date DATE                  Specify date to book rooms for (MM/DD)
    -h, --help                       Show this help message
    -l, --list                       List supported departments
    -n, --name NAME                  Name of the booking
    -t, --time TIME                  Specify time to book rooms for (HH:MM-HH:MM)
    -u, --update                     Update username and password
    -v, --version                    Show version

ex. Book a room in CS from 11am to 1pm on March 5th with the name 'Study Group'
    $> ubcbooker -b cs -n 'Study Group' -d 03/05 -t 11:00-13:00

Currently this app supports project rooms in cs (Computer Science). Run ubcbooker -l to check the latest supported departments.

Feel free to send a PR that supports your department's rooms.

Development

After checking out the repo, 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.

Contributing

Bug reports and pull requests are welcome. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Ubcbooker project’s codebase, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

🚩 CLI tool to book project rooms in UBC

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages