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.44.2 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.44.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.44.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.43.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.42.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.41.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.40.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.39.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.38.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.37.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.37.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.36.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.35.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.34.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.33.1 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.33.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.32.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.31.0 lib/avm/stereotypes/rails/instance.rb
avm-tools-0.30.0 lib/avm/stereotypes/rails/instance.rb