# File lib/god/cli/command.rb, line 42 def load_command file = @args[1] puts "Sending '#{@command}' command" puts unless File.exist?(file) abort "File not found: #{file}" end names, errors = *@server.running_load(File.read(file), File.expand_path(file)) # output response unless names.empty? puts 'The following tasks were affected:' names.each do |w| puts ' ' + w end end unless errors.empty? puts errors exit(1) end end