Coder Social home page Coder Social logo

vapor's Introduction

Vapor

Build Status

Welcome to vapor! With vapor you can interact with the web-dav interface of OwnCloud.

Installation

Add this line to your application's Gemfile:

gem 'vapor'

And then execute:

$ bundle

Or install it yourself as:

$ gem install vapor

Usage

Configure Vapor by adding your own_cloud credentials via an initializer; eg: config/initializers/vapor.rb

Vapor.configure do |config|
  config.base_url = ENV["OWN_CLOUD_BASE_URL"]
  config.base_path = ENV["OWN_CLOUD_BASE_PATH"]
  config.username = ENV["OWN_CLOUD_USER"]
  config.password = ENV["OWN_CLOUD_BASE_PASSWORD"]
end

To check if a path exists

Vapor.exists?('destination')           # Directories
Vapor.exists?('des tina tion')         # Spaces are allowed
Vapor.exists?('des&tination')          # Special chars are allowed
Vapor.exists?('destination/dest.file') # Files

In order to delete a path

Vapor.delete('destination')            # Directories
Vapor.delete('destination/dest.file')  # As well as Files

In order to put a file

Vapor.put_file('destination.file')

In order to get a file

Vapor.get_file('destination.file')

In order to list files in path

Vapor.list_files('remote-folder')

In order to create a directory

Vapor.mkdir('orphan')
Vapor.mkdir('parent/child')             # Nested
Vapor.mkdir('parent/child/grand_child') # Deeply nested

Development

After checking out the repo, run bundle to install dependencies. Then, run rspec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hoppinger/vapor.

Hoppinger

This gem was created by Hoppinger

forthebadge

vapor's People

Contributors

dunyakirkali avatar

Stargazers

 avatar

Watchers

Paul Huisman avatar Marcel Dillen avatar Marthyn Olthof avatar James Cloos avatar Robert Vermeulen avatar Lucas Pekelharing avatar Richard Bakker avatar Sebastiaan avatar Randy Dijkstra avatar Menno Dragt avatar Eric de Vos avatar Tolga Paksoy avatar Daphne Otterloo avatar Jim Thijssen avatar Mats Rietdijk avatar Kevin avatar Babette avatar Hans de Rooij avatar Amit Ajgaonkar avatar Marcello Mastellone avatar Sjors van Gelderen avatar Amber avatar  avatar Gyokay Ali avatar Alberto Meneghini avatar  avatar Giuseppe Maggiore avatar  avatar  avatar Leeroy Jenkins avatar Jori Regter avatar Mohamed Abbadi avatar Sjoerd Vermeijden avatar Sil avatar  avatar Mark Nuiver avatar Tymen avatar  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.