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

Version Path
avm-eac_ruby_base1-0.35.1 lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.96.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
avm-eac_ruby_base1-0.35.0 lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.95.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
avm-eac_ruby_base1-0.34.1 lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.91.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
avm-eac_ruby_base1-0.34.0 lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.91.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
avm-eac_ruby_base1-0.33.1 lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.83.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.82.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.81.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
avm-eac_ruby_base1-0.33.0 lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.80.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.79.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
avm-eac_ruby_base1-0.32.1 lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.78.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
avm-eac_ruby_base1-0.32.0 lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.77.1 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb
eac_tools-0.77.0 sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb