Sha256: e6ad32e63d03273d81e2f60470f29b0728965320f3fffe18cd2e0c6e3b40fb72

Contents?: true

Size: 433 Bytes

Versions: 3

Compression:

Stored size: 433 Bytes

Contents

module Fulmar
  module Infrastructure
    module Service
      # Provides access to composer
      class ComposerService
        def initialize(shell, custom_path = '/usr/bin/env composer')
          @local_shell = shell
          @path = custom_path
        end

        def execute(command, arguments = [])
          @local_shell.run "#{@path} #{command} #{arguments.join(' ')} > /dev/null"
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fulmar-1.2.1 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.2.0 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-1.1.0 lib/fulmar/infrastructure/service/composer_service.rb