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