Sha256: 71884c8734186c123bd517da8f4522feb53dd491dbed14e00dd639daffa1f662

Contents?: true

Size: 494 Bytes

Versions: 8

Compression:

Stored size: 494 Bytes

Contents

# frozen_string_literal: true

require 'chamber/commands/cloud/base'

module  Chamber
module  Commands
module  Cloud
class   Clear < Chamber::Commands::Cloud::Base
  def call
    chamber.to_environment.each_key do |key|
      next unless adapter.environment_variables.has_key?(key)

      if dry_run
        shell.say_status 'remove', key, :blue
      else
        shell.say_status 'remove', key, :green

        adapter.remove_environment_variable(key)
      end
    end
  end
end
end
end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
chamber-3.0.0rc2 lib/chamber/commands/cloud/clear.rb
chamber-2.14.3 lib/chamber/commands/cloud/clear.rb
chamber-3.0.0rc1 lib/chamber/commands/cloud/clear.rb
chamber-2.14.2 lib/chamber/commands/cloud/clear.rb
chamber-2.14.1 lib/chamber/commands/cloud/clear.rb
chamber-2.14.0 lib/chamber/commands/cloud/clear.rb
chamber-2.13.1 lib/chamber/commands/cloud/clear.rb
chamber-2.13.0 lib/chamber/commands/cloud/clear.rb