Skip to content

Commit

Permalink
organise scripts into a single directlory
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienpoly committed Jul 22, 2024
1 parent 36dd6db commit a85ceff
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
/app/assets/builds/*
!/app/assets/builds/.keep
/public/assets
/script/*
/scripts/*
6 changes: 3 additions & 3 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Add the following information to the `data_preparation/organisations.yml` file:
Then run this script:
```bash
rails runner script/prepare_organisations.rb
rails runner scripts/prepare_organisations.rb
```

This will update your `data_preparation/organisations.yml` file with the youtube_channel_id information.
Expand All @@ -42,7 +42,7 @@ This will update your `data_preparation/organisations.yml` file with the youtube
This workflow assumes the Youtube channel is organized by playlist with 1 event equating to 1 playlist. Run the following script to create the playlist file:

```
rails runner script/create_playlists.rb
rails runner scripts/create_playlists.rb
```

You will end up with a data structure like this:
Expand Down Expand Up @@ -84,7 +84,7 @@ Here is an example for RailsConf/RubyConf:
Once your playlists are currated, you can run the next script to extract the video information. It will iterate the playlist and extract all videos.

```bash
rails runner script/extract_videos.rb
rails runner scripts/extract_videos.rb
```

At this point you have this structure
Expand Down
2 changes: 1 addition & 1 deletion script/create_playlists.rb → scripts/create_playlists.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# start this script with the rails runner command
# rails runner script/create_playlists.rb
# rails runner scripts/create_playlists.rb
#
organisations = YAML.load_file("#{Rails.root}/data_preparation/organisations.yml")

Expand Down
2 changes: 1 addition & 1 deletion script/extract_videos.rb → scripts/extract_videos.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# start this script with the rails runner command
# $ rails runner script/extract_videos.rb
# $ rails runner scripts/extract_videos.rb
# Once you have created the playlists it will retrieve the videos
#

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# start this script with the rails runner command
# $ rails runner script/prepare_organisations.rb
# $ rails runner scripts/prepare_organisations.rb
#

organisations = YAML.load_file("#{Rails.root}/data_preparation/organisations.yml")
Expand Down

0 comments on commit a85ceff

Please sign in to comment.