Class: Indocker::ServerPools::BuildServerConnection
- Inherits:
-
ServerConnection
- Object
- ServerConnection
- Indocker::ServerPools::BuildServerConnection
- Defined in:
- lib/indocker/server_pools/build_server_connection.rb
Instance Attribute Summary
Attributes inherited from ServerConnection
Instance Method Summary collapse
Methods inherited from ServerConnection
#busy?, #close_session, #create_session!, #exec!, #initialize, #set_busy
Constructor Details
This class inherits a constructor from Indocker::ServerPools::ServerConnection
Instance Method Details
#compile_image_remotely(configuration_name:, image_name:) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/indocker/server_pools/build_server_connection.rb', line 4 def compile_image_remotely(configuration_name:, image_name:) result = exec!( "cd #{Indocker::IndockerHelper.indocker_dir} && ./bin/remote/compile -C #{configuration_name} -i #{image_name} -s #{@logger.debug? ? '-d' : ''}" ) Indocker::SshResultLogger .new(@logger) .log(result, "#{image_name.to_s.green} image compilation failed") result end |