Class: ContainerShip::Command::InitCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/container_ship/command/init_command.rb

Instance Method Summary collapse

Instance Method Details

#run(cluster_name) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/container_ship/command/init_command.rb', line 6

def run(cluster_name)
  FileUtils.mkdir_p(".container_ship/#{cluster_name}/tasks")
  puts "Created .container_ship/#{cluster_name}/tasks directory"
  FileUtils.mkdir_p(".container_ship/#{cluster_name}/services")
  puts "Created .container_ship/#{cluster_name}/services directory"

  puts 'Next: Create tasks_definition.json file to deploy in tasks or services directory 🖖🏻'
end