Sha256: cc87bfbebd55b282aa7e68c250434d251a43056dae1b091381cec139f749a3f6

Contents?: true

Size: 399 Bytes

Versions: 4

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

module Avm
  module Rails
    module Instance
      def bundle(*args)
        the_gem.bundle(*args).chdir_root.envvar('RAILS_ENV', 'production')
      end

      def rake(*args)
        bundle('exec', 'rake', *args)
      end

      def the_gem
        @the_gem ||= ::EacRubyGemsUtils::Gem.new(::File.join(read_entry('fs_path')), host_env)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
avm-tools-0.74.0 lib/avm/rails/instance.rb
avm-tools-0.73.0 lib/avm/rails/instance.rb
avm-tools-0.72.0 lib/avm/rails/instance.rb
avm-tools-0.71.0 lib/avm/rails/instance.rb