lib/fulmar/infrastructure/service/composer_service.rb in fulmar-1.0.0 vs lib/fulmar/infrastructure/service/composer_service.rb in fulmar-1.1.0
- old
+ new
@@ -1,15 +1,16 @@
module Fulmar
module Infrastructure
module Service
# Provides access to composer
class ComposerService
- def initialize(custom_path = '/usr/bin/env composer')
+ def initialize(shell, custom_path = '/usr/bin/env composer')
+ @local_shell = shell
@path = custom_path
end
def execute(command, arguments = [])
- system "#{@path} #{command} #{arguments.join(' ')} > /dev/null"
+ @local_shell.run "#{@path} #{command} #{arguments.join(' ')} > /dev/null"
end
end
end
end
end