Class: Services::Environments

Inherits:
Object
  • Object
show all
Defined in:
lib/busbar_cli/services/environments.rb

Class Method Summary collapse

Class Method Details

.call(app_id) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/busbar_cli/services/environments.rb', line 3

def self.call(app_id)
  environments = EnvironmentsRepository.by_app(app_id: app_id)

  puts 'ID - NAME - BUILDPACK'

  environments.each do |environment|
    puts "#{environment.id} - #{environment.name} - #{environment.buildpack_id}"
  end
end