Class: Fulmar::Infrastructure::Service::ComposerService
- Inherits:
-
Object
- Object
- Fulmar::Infrastructure::Service::ComposerService
- Defined in:
- lib/fulmar/infrastructure/service/composer_service.rb
Overview
Provides access to composer
Instance Method Summary collapse
- #execute(command, arguments = []) ⇒ Object
-
#initialize(shell, custom_path = '/usr/bin/env composer') ⇒ ComposerService
constructor
A new instance of ComposerService.
Constructor Details
#initialize(shell, custom_path = '/usr/bin/env composer') ⇒ ComposerService
Returns a new instance of ComposerService.
6 7 8 9 |
# File 'lib/fulmar/infrastructure/service/composer_service.rb', line 6 def initialize(shell, custom_path = '/usr/bin/env composer') @local_shell = shell @path = custom_path end |
Instance Method Details
#execute(command, arguments = []) ⇒ Object
11 12 13 |
# File 'lib/fulmar/infrastructure/service/composer_service.rb', line 11 def execute(command, arguments = []) @local_shell.run "#{@path} #{command} #{arguments.join(' ')} > /dev/null" end |