Sha256: 51d443dfb4378eba7433d3ed9052f7192724b4d7df5bb3a9b051bae126fef82c

Contents?: true

Size: 508 Bytes

Versions: 14

Compression:

Stored size: 508 Bytes

Contents

module Fulmar
  module Infrastructure
    module Service
      # Provides access to composer
      class ComposerService
        DEFAULT_PARAMS = ['--no-dev']

        def initialize(shell, custom_path = '/usr/bin/env composer')
          @local_shell = shell
          @local_shell.quiet = true
          @path = custom_path
        end

        def execute(command, arguments = DEFAULT_PARAMS)
          @local_shell.run "#{@path} #{command} #{arguments.join(' ')}"
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fulmar-1.7.2 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.7.1 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.7.0 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.6.4 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.6.3 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.6.2 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.6.1 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.6.0 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.5.2 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.5.1 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.5.0 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.4.2 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.4.1 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.4.0 lib/fulmar/infrastructure/service/composer_service.rb