Git Product home page Git Product logo

stingray-exec's Introduction

stingray-exec

Build Status

Stingray Traffic Manager Control API Client

Installation

Install it via gem:

$ gem install stingray-exec

Usage

TODO: yup

Hacking

Some (all?) of this may be obvious for those familiar with Ruby modern projects. It'll be okay.

Clone down a copy

git clone git://github.com/modcloth-labs/stingray-exec.git
pushd stingray-exec

Make sure you have bundler

gem install bundler

Pull in dependencies with bundler

bundle install

Verify basic operation with the stingray-exec script

bundle exec bin/stingray-exec --help

As you'll see in the usage text, all of the command-line flags may also be passed as environmental variables. The idea here is that it's sometimes easier to define an environmental variable soup instead of having to pass lots of flags for every invocation.

Running the tests

The test suite uses RSpec. By default, all specs tagged with :integration => true are excluded. This results in very little being tested. In order to exercise the really interesting tests, you'll have to define a STINGRAY_ENDOINT environmental variable. Some examples of how to do this are available in the .local.integration.env and .vagrant.integration.env files in the root of the project tree.

bundle exec rspec

Examples

There are some example stingray-exec scripts present in the ./examples directory. The stingray-exec script accepts a filename as positional argument, so using it in the shebang line works great.

WARNING: some of the examples are destructive, so don't go pointing them at production systems or any such nonsense.

stingray-exec's People

Contributors

meatballhat avatar rafecolton 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.