Sha256: 9f3bef906da86cc340116ae1270a8bb83c412b57522410920ca53f8b725cfc5b

Contents?: true

Size: 895 Bytes

Versions: 13

Compression:

Stored size: 895 Bytes

Contents

# frozen_string_literal: true

require_relative "base"

module Neetob
  class CLI
    module NeetoDeploy
      module ConfigVars
        class List < Base
          attr_accessor :apps, :sandbox

          def initialize(apps, sandbox = false)
            super()
            @apps = apps
            @sandbox = sandbox
          end

          def run
            matching_apps = find_all_matching_apps_or_repos(apps, :neetodeploy, sandbox)
            results = []
            matching_apps.each do |app|
              ui.info("\nConfig of #{app}\n") unless Thread.current[:audit_mode]
              result = `neetodeploy env list -a #{app}`
              results << result
              ui.success(result) unless Thread.current[:audit_mode]
            end
            if Thread.current[:audit_mode]
              results
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
neetob-0.5.29 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.28 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.27 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.26 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.25 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.24 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.23 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.22 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.21 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.20 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.19 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.18 lib/neetob/cli/neeto_deploy/config_vars/list.rb
neetob-0.5.17 lib/neetob/cli/neeto_deploy/config_vars/list.rb