← All tools

infrablocks/ruby_fly

Popularity 65 Updated Development & Build

A simple Ruby wrapper for invoking fly commands.

githubauto-collected

Installation

A directly usable install command is not verified yet. Check the project documentation or releases.

RubyFly

Wraps the concourse fly CLI so that fly can be invoked from a Ruby script or Rakefile.

Installation

Add this line to your application's Gemfile:

gem 'ruby_fly'

And then execute:

$ bundle

Or install it yourself as:

$ gem install rubyfly

Usage

Binary Location

RubyFly needs to know where the fly binary is located before it can do anything. By default, RubyFly looks on the path however this can be configured with:

RubyFly.configure do |config|
  config.binary = 'vendor/fly/bin/fly'
end

In addition, each command takes a binary keyword argument at initialisation that overrides the global configuration value.

Login

Currently the library doesn't support logging in to a Concourse instance so if the target instance requires authentication, a session must be manually established before any commands are executed. If there are recommendations for a good approach to automatic login, please raise an issue or a pull request.

Commands

Currently, there is partial support for the following commands: