Module: UndriveGoogle
- Defined in:
- lib/undrive_google.rb,
lib/undrive_google/cli.rb,
lib/undrive_google/options.rb,
lib/undrive_google/session.rb,
lib/undrive_google/version.rb,
lib/undrive_google/config_file.rb,
lib/undrive_google/captive_file.rb,
lib/undrive_google/actions/sweep.rb,
lib/undrive_google/helpers/parse.rb,
lib/undrive_google/transformation.rb,
lib/undrive_google/actions/liberate.rb,
lib/undrive_google/transformations/unzip.rb,
lib/undrive_google/transformations/download.rb,
lib/undrive_google/transformations/fix_html.rb,
lib/undrive_google/transformations/delete_zip.rb,
lib/undrive_google/transformations/rename_html.rb
Defined Under Namespace
Modules: Actions, Helpers, Transformations, Version Classes: CLI, CaptiveFile, ConfigFile, Error, Options, Session, Transformation
Constant Summary collapse
- FILE_BY =
{ title: :title, key: :key }.freeze
- DL_FILE_TYPES =
epub is conditionally in DL_FILE_TYPES depending on the google_drive gem used.
if HAS_EPUB %i[docx odt rtf pdf txt zip epub].freeze else %i[docx odt rtf pdf txt zip].freeze end
- ALL_FILE_TYPES =
html is not in DL_FILE_TYPES because you can’t download it directly. html is downloaded as zip, and must then be unzipped.
DL_FILE_TYPES + %i[html].freeze
- RENAME_PROC =
->(orig) { orig.tr(" ", "_") }
- YAML_KEYS =
%i[ key_file file_id file_by extensions unzip keep_zip rename_pattern title dir lang sweep verbose ].freeze
- CONFIG_YAML_PATH =
"undrive_google.yaml"
- KEY_FILE_PATH =
"service_account_private_key.json"