← 全部工具

infrablocks/ruby_fly

热度 65 更新于 开发与构建

A simple Ruby wrapper for invoking fly commands.

githubauto-collected

安装

暂未验证可直接使用的安装命令,请查看项目官方文档或 Release。

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: