Class: Naifa::Utils

Inherits:
Object
  • Object
show all
Defined in:
lib/naifa/utils.rb

Class Method Summary collapse

Class Method Details

.docker_compose_exec_command(app_name, command) ⇒ Object



7
8
9
# File 'lib/naifa/utils.rb', line 7

def self.docker_compose_exec_command(app_name, command)
  Kernel.system("docker-compose exec #{app_name} bash -c \"#{command}\"")
end

.download_file(filename, url) ⇒ Object



3
4
5
# File 'lib/naifa/utils.rb', line 3

def self.download_file(filename, url)
  Kernel.system("curl -o #{filename} #{url}")
end