Sha256: 0a54c5e5d7c0595fe632e948136402e89b3643135944e8aee255103f50856ac6

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fulmar-1.0.0 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-0.6.5 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-0.6.4 lib/fulmar/infrastructure/service/composer_service.rb
fulmar-0.6.3 lib/fulmar/infrastructure/service/composer_service.rb