Class: Mccloud::Command::TemplateCommand

Inherits:
GroupBase
  • Object
show all
Defined in:
lib/mccloud/command/template.rb

Instance Attribute Summary

Attributes inherited from GroupBase

#env

Instance Method Summary collapse

Methods inherited from GroupBase

#initialize, register

Methods included from Helpers

#initialize_environment

Constructor Details

This class inherits a constructor from Mccloud::Command::GroupBase

Instance Method Details

#list(selection = nil) ⇒ Object



7
8
9
10
11
# File 'lib/mccloud/command/template.rb', line 7

def list(selection=nil)
    env.config.templates.each do |name,template|
      env.ui.info template.to_s
    end
end