Sha256: 7b64db6ed073086c0defdc0e818c4b9946f5653529d8c5ceb86fb1dd56c0eead
Contents?: true
Size: 766 Bytes
Versions: 3
Compression:
Stored size: 766 Bytes
Contents
# frozen_string_literal: true require 'avm/patches/eac_ruby_gems_utils/gem' module Avm module Apps module Sources class Configuration < ::EacRubyUtils::Configs BUNDLE_TEST_COMMAND_KEY = 'test.bundle_command' TEST_COMMAND_KEY = 'test.command' def any_test_command bundle_test_command || test_command end def test_command read_command(TEST_COMMAND_KEY) end def bundle_test_command read_entry(BUNDLE_TEST_COMMAND_KEY).if_present do |v| args = v.is_a?(::Enumerable) ? v.map(&:to_s) : ::Shellwords.split(v) ::EacRubyGemsUtils::Gem.new(::File.dirname(storage_path)).bundle(*args).chdir_root end end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems