Bonjour,
Je suis un débutant sous Ruby et je dois l'utiliser pour Redmine.
Mon problème se situe dans le fait que j'utilise Windows, et la commande :
output = `#{cmd}}`
me donne l'erreur :
C:/ruby/lib/ruby/gems/1.8/gems/mongrel_cluster-1.0.5/bin/mongrel_cluster_ctl.rb:15:in ``': Exec format error - mongrel_rails cluster::start -C tracker.yml -v} (Errno::ENOEXEC)
Le contexte de la commande :
def run(command, verbose, clean=false)
Dir.chdir @options[:conf_path] do
confs = Dir.glob("*.yml")
confs += Dir.glob("*.conf")
confs.each do |conf|
cmd = "mongrel_rails cluster::#{command} -C #{conf}"
cmd += " -v" if verbose
cmd += " --clean" if clean
puts cmd if verbose || command == "status"
output = `#{cmd}}`
puts output if verbose || command == "status"
puts "mongrel_rails cluster::#{command} returned an error." unless $?.success?
end
end
end
Quelqu'un aurait-il une idée sur cette erreur ? Cela vient-il d'une incompatibilité Windows pour le caractère ` ?
Merci de votre aide
|
il y a 17 heures 14 min
il y a 1 semaine 16 heures
il y a 1 semaine 1 jour
il y a 1 semaine 1 jour
il y a 1 semaine 1 jour
il y a 1 semaine 6 jours
il y a 2 semaines 12 heures
il y a 2 semaines 3 jours
il y a 3 semaines 4 heures
il y a 3 semaines 1 jour