Skip to content

Instantly share code, notes, and snippets.

@perumal
perumal / seat_allotment.rb
Last active May 5, 2019 13:41
Seat Allot Project Code
num_of_passengers = gets
if num_of_passengers != nil
num_of_passengers = num_of_passengers.chomp.to_i
else
exit(0)
end
seat_structure_raw_input = gets(nil)
if seat_structure_raw_input != nil
seat_structure_raw_input = seat_structure_raw_input.chomp
require 'mina/bundler'
require 'mina/rails'
require 'mina/git'
# Basic settings:
# domain - The hostname to SSH to
# deploy_to - Path to deploy into
# repository - Git repo to clone from (needed by mina/git)
# user - Username in the server to SSH to (optional)