Sha256: 29d0c9c0ad50eb95be261cfbada9effb9cf4c3bf8a5abd0e947d6db8deb3da29

Contents?: true

Size: 481 Bytes

Versions: 59

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true

module Avm
  module Stereotypes
    module Rails
      module Instance
        def bundle(*args)
          host_env.command('bundle', *args)
                  .envvar('BUNDLE_GEMFILE', ::File.join(read_entry('fs_path'), 'Gemfile'))
                  .envvar('RAILS_ENV', 'production')
                  .chdir(read_entry('fs_path'))
        end

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

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
avm-tools-0.61.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.60.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.59.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.58.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.58.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.57.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.56.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.55.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.54.2 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.54.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.54.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.53.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.52.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.51.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.50.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.49.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.48.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.47.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.46.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.45.0 lib/avm/stereotypes/rails/instance.rb