Permalink
Browse files

Disable automatic ticket enable/disable

  • Loading branch information...
Jakob Holderbaum
Jakob Holderbaum committed Feb 4, 2019
1 parent 46969b9 commit 4ccd5b3242418f34c92b5bd9b6ade0e9825284e2
Showing with 15 additions and 63 deletions.
  1. +0 −36 bin/tickets.rb
  2. +0 −2 data/tickets.json
  3. +15 −25 do

This file was deleted.

Oops, something went wrong.
@@ -1,8 +1,6 @@
{
"earlybird": {
"price": 380,
"available_number": null,
"total_size": null,
"available": true
},
"regular": {
40 do
@@ -22,21 +22,20 @@ function task_prepare_ci {
-d
chmod 600 deploy/ssh

# task_update_event_data || exit 1
# task_update_tickets || exit 1
# task_update_speakers || exit 1
# task_update_keynotes || exit 1
# task_update_speakies_details || exit 1

# if [[ "$(git diff --stat)" != '' ]];
# then
# eval "$(ssh-agent -s)"
# ssh-add deploy/ssh

# git commit -am '[travis] Update frab data [ci skip]'
# git remote set-url origin git@github.com:hrx-events/think-about.git
# git push origin master
# fi
task_update_event_data || exit 1
task_update_speakers || exit 1
task_update_keynotes || exit 1
task_update_speakies_details || exit 1

if [[ "$(git diff --stat)" != '' ]];
then
eval "$(ssh-agent -s)"
ssh-add deploy/ssh

git commit -am '[travis] Update frab data [ci skip]'
git remote set-url origin git@github.com:hrx-events/think-about.git
git push origin master
fi
}

task_serve() {
@@ -92,14 +91,6 @@ task_update_keynotes() {
return $?
}

task_update_tickets() {
ensure_ruby

bundle exec ruby bin/tickets.rb > data/tickets.json
return $?
}


task_deploy() {
local user="${1:-deploy-think-about}"

@@ -128,7 +119,7 @@ task_deploy() {
}

usage() {
echo "$0 serve | build | update_event_data | update_keynotes | update_speakers | update_speakies_details | update_tickets | deploy | clean"
echo "$0 serve | build | update_event_data | update_keynotes | update_speakers | update_speakies_details | deploy | clean"
exit 1
}

@@ -143,7 +134,6 @@ case "$cmd" in
update_keynotes) task_update_keynotes ;;
update_speakers) task_update_speakers ;;
update_speakies_details) task_update_speakies_details ;;
update_tickets) task_update_tickets ;;
deploy) task_deploy "$@" ;;
*) usage ;;
esac

0 comments on commit 4ccd5b3

Please sign in to comment.