Sha256: 238e7d0ee688234d4fe48dc9fd8aac7df440b098e3b16425174c21a60544266c

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 Bytes

Contents

class Template < Skippy::Command

  desc 'list', 'List all known templates'
  def list
    say 'Available templates:', :yellow
    templates = Skippy.app.templates
    if templates.empty?
      say '  No templates found'
    else
      templates.each { |template|
        say "  #{template}", :green
      }
    end
  end
  default_command(:list)

  desc 'install', 'Install a new template'
  def install(source)
    raise Skippy::Error, 'Not implemented'
  end

  desc 'remove', 'Remove an installed template'
  def remove(template_name)
    raise Skippy::Error, 'Not implemented'
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
skippy-0.1.1.a app/commands/template.rb