Class: Silo::CLI

Inherits:
Rubikon::Application::Base
  • Object
show all
Defined in:
lib/silo/cli.rb

Overview

This class is a Rubikon application that implements the command-line interface for Silo

Author:

  • Sebastian Staudt

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Attribute Details

#repoRepository

Returns the current repository

Returns:

  • (Repository)

    The currently configured Silo repository

Raises:

  • (RuntimeError)

    if no repository is configured

Since:

  • 0.1.0



167
168
169
170
# File 'lib/silo/cli.rb', line 167

def repo
  raise 'No repository configured.' if @repo.nil?
  @repo
end