Sha256: c90bb3e3617cbbebe9d769290f5d9f0afa847bb386b5fb22f7706b892b9cee74

Contents?: true

Size: 368 Bytes

Versions: 16

Compression:

Stored size: 368 Bytes

Contents

module Mccloud
  module Command
    class TemplateCommand < Mccloud::Command::GroupBase
      register "template", "Subcommand to manage templates"

      desc "list [TEMPLATE-NAME]", "List templates"
      def list(selection=nil)
          env.config.templates.each do |name,template|
            env.ui.info template.to_s
          end
      end

    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
mccloud-0.1.1 lib/mccloud/command/template.rb
mccloud-0.0.28 lib/mccloud/command/template.rb
mccloud-0.0.27 lib/mccloud/command/template.rb
mccloud-0.0.26 lib/mccloud/command/template.rb
mccloud-0.0.25 lib/mccloud/command/template.rb
mccloud-0.0.24 lib/mccloud/command/template.rb
mccloud-0.0.23 lib/mccloud/command/template.rb
mccloud-0.0.22 lib/mccloud/command/template.rb
mccloud-0.0.21 lib/mccloud/command/template.rb
mccloud-0.0.20 lib/mccloud/command/template.rb
mccloud-0.0.19 lib/mccloud/command/template.rb
mccloud-0.0.18 lib/mccloud/command/template.rb
mccloud-0.0.17 lib/mccloud/command/template.rb
mccloud-0.0.16 lib/mccloud/command/template.rb
mccloud-0.0.15 lib/mccloud/command/template.rb
mccloud-0.0.14 lib/mccloud/command/template.rb