Skip to content

tardate/megar_rt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Megar Runtime Template

This is a template environment for the megar gem. It uses RVM and bundler to create an isolated runtime environment for the gem.

Megar (“megaargh!” in pirate-speak) is a Ruby wrapper and command-line (CLI) client for the Mega API.

Setup

Clone the repo:

$ git clone https://github.com/tardate/megar_rt

Run bundle to install the gem and dependencies:

$ cd megar_rt
$ bundle

Then the gem is ready to go. From ruby scripts or irb:

$ irb -r megar
1.9.3p327 :001 > session = Megar::Session.new(email: 'my@mail.com', password: 'MyPassword')
 => Megar::Session: connected as my@mail.com
1.9.3p327 :002 >

And from the command line:

$ megar

Megar v0.0.1
===================================

Usage:
  megar [options] [commands]

Options:
  -h  | --help           : shows command help
  -v  | --verbose        : run with verbose
  -e= | --email=value    : email address for login
  -p= | --password=value : password for login

Commands:
  (none)                 : will perform a basic connection test only
  ls                     : returns a full file listing

Examples:
  megar --email=my@mail.com --password=MyPassword ls
  megar -e my@mail.com -p MyPassword ls

About

Runtime environment template for the megar gem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages