Sha256: 4d694fb5851930aa4fbd2b4ccf5f7afc2cd8b3c8e14e79d42f0b3058b7caab88
Contents?: true
Size: 711 Bytes
Versions: 74
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true require 'active_support/core_ext/hash/indifferent_access' require 'active_support/core_ext/object/blank' require 'shellwords' module EacRubyUtils module Envs module BaseCommand module ExtraOptions # @return [ActiveSupport::HashWithIndifferentAccess] def extra_options @extra_options ||= {}.with_indifferent_access end def status_result(status_code, result) duplicate_by_extra_options(status_results: status_results.merge(status_code => result)) end private def status_results extra_options[:status_results] ||= {}.with_indifferent_access end end end end end
Version data entries
74 entries across 74 versions & 2 rubygems