Sha256: 1d365942dda6fece1bb78909e0cca060173cfd9c14a8e71b45e97187ee1ee338

Contents?: true

Size: 515 Bytes

Versions: 2

Compression:

Stored size: 515 Bytes

Contents

require 'core/command'

module Nutella
    
  class Help < Command
    @description = "Displays what every command does and how to use it"
  
    def run(args=nil)
      message=""
      Dir[File.dirname(__FILE__)+"/*.rb"].each do |file|
        message += "#{File.basename(file, File.extname(file))}\t\t"
        message += Object::const_get("Nutella::#{File.basename(file, File.extname(file)).capitalize}").description
        message += "\n"
      end
      console.info message, 200
    end
    
  end
  
end


Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nutella_framework-0.1.2 lib/core/commands/help.rb
nutella_framework-0.1.0 lib/core/commands/help.rb