Sha256: 152493e3829c74c49954afa0f2164a355630179b10c72556bab053aafcc92d99

Contents?: true

Size: 625 Bytes

Versions: 1

Compression:

Stored size: 625 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.name}", :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.0.a app/commands/template.rb