Sha256: ffc97bf12b017187207156d4ead6048e2054561e8801095c7ad8cd04efdf4476

Contents?: true

Size: 759 Bytes

Versions: 25

Compression:

Stored size: 759 Bytes

Contents

# frozen_string_literal: true

require_relative "base"

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

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

          def run
            matching_apps = find_all_matching_apps_or_repos(apps, :neetodeploy, sandbox)
            matching_apps.each do |app|
              ui.info("\nWorking on #{app}")
              keys.each do |key|
                ui.info(`neetodeploy env unset #{key} -a #{app}`)
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
neetob-0.4.34 lib/neetob/cli/neeto_deploy/config_vars/remove.rb
neetob-0.4.33 lib/neetob/cli/neeto_deploy/config_vars/remove.rb
neetob-0.4.32 lib/neetob/cli/neeto_deploy/config_vars/remove.rb
neetob-0.4.31 lib/neetob/cli/neeto_deploy/config_vars/remove.rb
neetob-0.4.30 lib/neetob/cli/neeto_deploy/config_vars/remove.rb