Method: Terraspace::CLI::Test#adjust_command

Defined in:
lib/terraspace/cli/test.rb

#adjust_command(command) ⇒ Object



19
20
21
22
23
24
25
26
# File 'lib/terraspace/cli/test.rb', line 19

def adjust_command(command)
  if cd_into_test?
    command = "bundle exec #{command}" unless command.include?("bundle exec")
    command = "cd test && #{command}"
  else
    command
  end
end