Class: HustleAndFlow::VersionControls::Commands::Ready

Inherits:
Object
  • Object
show all
Defined in:
lib/hustle_and_flow/version_controls/commands/ready.rb

Class Method Summary collapse

Class Method Details

.call(**args) ⇒ Object



8
9
10
11
12
13
# File 'lib/hustle_and_flow/version_controls/commands/ready.rb', line 8

def self.call(**args)
  version_controls_class = VersionControl.detect.name.gsub('::Repository', '')
  command_class          = const_get("::#{version_controls_class}::Commands::Ready")

  command_class.call(**args)
end