Sha256: 5e1051ec91b8c4ba50c52372dc4d770839bfc58fd94a6cf8fba882e4beeda857

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

require 'instance_selector'

Capistrano::Configuration.instance(:must_exist).load do
  def instance_selector(cap_role, provider, args={})
    client = InstanceSelector::Connection.factory(:aws)
    instances = client.instances(client.args_to_filters(args))
    instances.keys.each { |instance| role(cap_role, *instances.keys) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
instance_selector-0.0.1 lib/instance_selector/capistrano.rb