lib/fulmar/infrastructure/service/composer_service.rb in fulmar-1.7.2 vs lib/fulmar/infrastructure/service/composer_service.rb in fulmar-1.7.3

- old
+ new

@@ -3,17 +3,19 @@ module Service # Provides access to composer class ComposerService DEFAULT_PARAMS = ['--no-dev'] + attr_accessor :shell + def initialize(shell, custom_path = '/usr/bin/env composer') - @local_shell = shell - @local_shell.quiet = true + @shell = shell + @shell.quiet = true @path = custom_path end def execute(command, arguments = DEFAULT_PARAMS) - @local_shell.run "#{@path} #{command} #{arguments.join(' ')}" + @shell.run "#{@path} #{command} #{arguments.join(' ')}" end end end end end