Sha256: 75a9b2d007489b98629aa2fe1f8425cabec5738d3bd66a2fda029bf3a3dcc63a

Contents?: true

Size: 728 Bytes

Versions: 30

Compression:

Stored size: 728 Bytes

Contents

module Aptible
  module CLI
    module Subcommands
      module Services
        def self.included(thor)
          thor.class_eval do
            include Helpers::App

            desc 'services', 'List Services for an App'
            app_options
            def services
              app = ensure_app(options)

              Formatter.render(Renderer.current) do |root|
                root.list do |list|
                  app.each_service do |service|
                    list.object do |node|
                      ResourceFormatter.inject_service(node, service, app)
                    end
                  end
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
aptible-cli-0.21.0 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.20.0 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.19.9 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.19.7 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.19.6 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.19.4 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.19.3 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.19.2 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.19.1 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.19.0 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.18.3 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.18.2 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.18.1 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.18.0 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.17.2 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.17.1 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.17.0 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.16.9 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.16.8 lib/aptible/cli/subcommands/services.rb
aptible-cli-0.16.7 lib/aptible/cli/subcommands/services.rb