Coder Social home page Coder Social logo

wata / fastlane-plugin-google_drive Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bskim45/fastlane-plugin-google_drive

0.0 0.0 0.0 83 KB

fastlane plugin to upload files to Google Drive

Home Page: https://rubygems.org/gems/fastlane-plugin-google_drive

License: MIT License

Shell 0.48% Ruby 99.52%

fastlane-plugin-google_drive's Introduction

google_drive fastlane plugin

fastlane Plugin Badge Gem Version Build Status Test Coverage

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-google_drive, add it to your project by running:

fastlane add_plugin google_drive

About google_drive

Please refer to this guide to create an Google Drive credential.

Upload files to Google Drive folder.

Aliases for this action - google_drive_upload and upload_google_drive are both removed in v0.6.0.

upload_to_google_drive(
  drive_keyfile: 'drive_key.json',
  service_account: true,
  folder_id: 'folder_id',
  upload_files: ['file_to_upload', 'another_file_to_upload']
)

Create new Google Drive folder:

create_google_drive_folder(
  drive_keyfile: 'drive_key.json',
  folder_id: '#{folder_id}',
  folder_title: 'new_folder'
)

Update the content of existing Google Drive file:

update_google_drive_file(
  drive_keyfile: 'drive_key.json',
  file_id: 'file_id',
  upload_file: 'path/to/file.txt'
)

Find the existing file or folder:

# find the file or folder by ID
find_google_drive_file_by_id(
  drive_keyfile: 'drive_key.json',
  file_id: 'file_or_folder_id'
)

# find the file or folder by title
find_google_drive_file_by_title(
  drive_keyfile: 'drive_key.json',
  parent_folder_id: 'parent_folder_id',
  file_title: 'file_or_folder_title'
)

Download feature is not implemented yet. PR is always welcome.

Example

Check out the example Fastfile to see how to use this plugin. Try it by cloning the repo, running fastlane install_plugins and bundle exec fastlane test.

Run tests for this plugin

To run both the tests, and code style validation, run

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.

License

The MIT License (MIT)

Copyright (c) 2022 Bumsoo Kim (https://bsk.im)

fastlane-plugin-google_drive's People

Contributors

bskim45 avatar abnegate avatar renovate[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.