Class: PapyTools::CommandeCreateWithSite
- Inherits:
-
CommandeCreate
- Object
- Commande
- CommandeCreate
- PapyTools::CommandeCreateWithSite
- Defined in:
- lib/papy-tools/commande.rb
Instance Method Summary collapse
-
#initialize ⇒ CommandeCreateWithSite
constructor
A new instance of CommandeCreateWithSite.
- #run(options = {}) ⇒ Object
Methods inherited from CommandeCreate
#filter_erb, #input, #name_output_file, #output, #parametres, #set_invisible
Methods inherited from Commande
Constructor Details
#initialize ⇒ CommandeCreateWithSite
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(={}) @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) [:liste]=@liste @invisibles[:FFE]=true @tournoi=FabriqueTournoiFFE.instance.construction(@doc,) 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 |