Sha256: 2e33bd1942aedec631d013e63565efa90421500816d9e1928a2085b437cc3819
Contents?: true
Size: 520 Bytes
Versions: 24
Compression:
Stored size: 520 Bytes
Contents
module Fulmar module Infrastructure module Service # Provides access to composer class ComposerService DEFAULT_PARAMS = ['--no-dev'] attr_accessor :shell def initialize(shell, custom_path = '/usr/bin/env composer') @shell = shell @shell.quiet = true @path = custom_path end def execute(command, arguments = DEFAULT_PARAMS) @shell.run "#{@path} #{command} #{arguments.join(' ')}" end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems