Sha256: 7cedbb28f5c57d64ae1663fd10a0562e9cd22e5d89663f519a0349b6ecb71e93
Contents?: true
Size: 485 Bytes
Versions: 4
Compression:
Stored size: 485 Bytes
Contents
module Mulder class Client attr_reader :app, :role, :environment def initialize(connection, app, environment, role) @connection = connection @app = app @environment = environment @role = role end def group @connection.group_by_id_regexp(id_regexp) end def instances @connection.instances_by_group(group) end def id_regexp /^#{@app}-#{@environment}-(.*-)?#{@role}-.*$/i end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mulder-0.3.2 | lib/mulder/client.rb |
mulder-0.3.1 | lib/mulder/client.rb |
mulder-0.3.0 | lib/mulder/client.rb |
mulder-0.2.0 | lib/mulder/client.rb |