Sha256: 1eb91757eab4fc11eafb195e168dbb382eecb828bdaf39cb6cfcefffa6f65c27

Contents?: true

Size: 621 Bytes

Versions: 10

Compression:

Stored size: 621 Bytes

Contents

module Mulder

  require_relative 'mulder/cli'
  require_relative 'mulder/client'
  require_relative 'mulder/config'
  require_relative 'mulder/connection'
  require_relative 'mulder/formatter'
  require_relative 'mulder/instance'
  require_relative 'mulder/version'

  def self.search(app, env, role, format, config_file)
    config     = Mulder::Config.from(:yaml, file: config_file)
    connection = Mulder::Connection.new(config)
    client     = Mulder::Client.new(connection, app, env, role)
    instances  = client.instances
    formatter  = Mulder::Formatter.new(instances, format)

    formatter.output
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mulder-0.4.0 lib/mulder.rb
mulder-0.3.2 lib/mulder.rb
mulder-0.3.1 lib/mulder.rb
mulder-0.3.0 lib/mulder.rb
mulder-0.2.1 lib/mulder.rb
mulder-0.2.0 lib/mulder.rb
mulder-0.1.0 lib/mulder.rb
mulder-0.0.5 lib/mulder.rb
mulder-0.0.4 lib/mulder.rb
mulder-0.0.3 lib/mulder.rb