Class: PapyTools::CommandeListTemplate

Inherits:
Commande
  • Object
show all
Defined in:
lib/papy-tools/commande.rb

Instance Method Summary collapse

Methods inherited from Commande

instance

Constructor Details

#initializeCommandeListTemplate

Returns a new instance of CommandeListTemplate.



114
115
# File 'lib/papy-tools/commande.rb', line 114

def initialize
end

Instance Method Details

#run(options = {}) ⇒ Object



117
118
119
120
121
122
# File 'lib/papy-tools/commande.rb', line 117

def run(options={})
    liste=Dir.entries("template")-[".",".."]
    puts "liste des templates"
    puts "-------------------"
    liste.each {|t| puts t}
end