Class: Kamal::Commands::Server

Inherits:
Base
  • Object
show all
Defined in:
lib/kamal/commands/server.rb

Constant Summary

Constants inherited from Base

Base::DOCKER_HEALTH_STATUS_FORMAT

Instance Attribute Summary

Attributes inherited from Base

#config

Instance Method Summary collapse

Methods inherited from Base

#container_id_for, #initialize, #make_directory, #make_directory_for, #remove_directory, #remove_file, #run_over_ssh

Constructor Details

This class inherits a constructor from Kamal::Commands::Base

Instance Method Details

#app_directory_countObject



10
11
12
13
14
# File 'lib/kamal/commands/server.rb', line 10

def app_directory_count
  pipe \
    [ :ls, config.apps_directory ],
    [ :wc, "-l" ]
end

#ensure_run_directoryObject



2
3
4
# File 'lib/kamal/commands/server.rb', line 2

def ensure_run_directory
  make_directory config.run_directory
end

#remove_app_directoryObject



6
7
8
# File 'lib/kamal/commands/server.rb', line 6

def remove_app_directory
  remove_directory config.app_directory
end