Sha256: bdab24cb61a5b735accd1fb28eb4b830d3a5962bf95bb5376824a03e66572654
Contents?: true
Size: 1016 Bytes
Versions: 174
Compression:
Stored size: 1016 Bytes
Contents
# frozen_string_literal: true require 'avm/eac_generic_base0/sources/base' require 'eac_ruby_utils/core_ext' require 'eac_ruby_utils/ruby/command' module Avm module EacRubyBase1 module Sources class Base < ::Avm::EacGenericBase0::Sources::Base class BundleCommand < ::EacRubyUtils::Ruby::Command GEMFILE_PATH_ENVVAR = 'BUNDLE_GEMFILE' attr_reader :source def initialize(source, command_args, extra_options = {}) @source = source super(command_args, extra_options.merge(host_env: source.env)) end # Changes current directory to the source's directory. def chdir_root chdir(source.path) end def envvar_gemfile envvar(GEMFILE_PATH_ENVVAR, source.gemfile_path.to_path) end protected def duplicate(command, extra_options) self.class.new(source, command, extra_options) end end end end end end
Version data entries
174 entries across 174 versions & 3 rubygems