Class: PapyTools::CommandeCreateWithSite

Inherits:
CommandeCreate show all
Defined in:
lib/papy-tools/commande.rb

Instance Method Summary collapse

Methods inherited from CommandeCreate

#filter_erb, #input, #name_output_file, #output, #parametres, #set_invisible

Methods inherited from Commande

instance

Constructor Details

#initializeCommandeCreateWithSite

Returns a new instance of CommandeCreateWithSite.



253
254
255
256
# File 'lib/papy-tools/commande.rb', line 253

def initialize()
  super()
  parametres()
end

Instance Method Details

#run(options = {}) ⇒ Object



258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
# File 'lib/papy-tools/commande.rb', line 258

def run(options={})
    @url=ARGV[1]
    url_base=@url.split("&").first
    @url_grille=url_base+"&Action=Ga"
    @url_liste=url_base+"&Action=Ls"
    @doc=input(@url_grille)
    @liste=input(@url_liste)        
    options[:liste]=@liste
    @invisibles[:FFE]=true
    @tournoi=FabriqueTournoiFFE.instance.construction(@doc,options)
    if @output
        @output_file=@output
    else
    @output_file=@tournoi.titre.split(":").first()
    end
    @presentation=Presentation.new(@tournoi,@invisibles,@filtres)
    filter_erb
    name_output_file
    output
end