Module: Gill

Extended by:
CLI
Defined in:
lib/gill/cli.rb,
lib/gill/git.rb,
lib/gill/gill.rb,
lib/gill/parse.rb,
lib/gill/config.rb,
lib/gill/helper.rb,
lib/gill/import.rb,
lib/gill/remove.rb,
lib/gill/version.rb,
lib/gill/exceptions/error.rb,
lib/gill/exceptions/cache_error.rb,
lib/gill/exceptions/syntax_error.rb,
lib/gill/exceptions/argument_error.rb,
lib/gill/exceptions/directory_error.rb,
lib/gill/exceptions/category_missing.rb,
lib/gill/exceptions/repository_error.rb,
lib/gill/exceptions/repository_missing.rb

Defined Under Namespace

Modules: CLI, Helper, Settings Classes: ArgumentError, CacheError, CategoryMissing, DirectoryError, Error, Git, Import, Parse, Remove, RepositoryError, RepositoryMissing, SyntaxError

Constant Summary collapse

ENV_BLACKLIST =

GIT ENV Variables that interfere with paths

%w(GIT_DIR GIT_INDEX_FILE GIT_WORK_TREE)
VERSION =

VERSION

Returns:

  • (String)

    Gill Version Number

'1.3.0'

Class Method Summary collapse

Methods included from CLI

import, list, optparse, pull, remove, update, usage

Methods included from Helper

#ask, #basename, #blue, #folder_empty?, #green, #parent, #red

Class Method Details

.configObject

Gill config getter method

Returns:

  • (Object)

    Settings::Config Object



26
27
28
29
# File 'lib/gill/gill.rb', line 26

def Gill.config
  return @config if defined?(@config)
  Gill.config = Settings::Config.new
end

.config=(config = nil) ⇒ Object

Gill config setter method

Parameters:

  • config (Object) (defaults to: nil)

    Settings::Config Object



17
18
19
# File 'lib/gill/gill.rb', line 17

def Gill.config=(config=nil)
  @config = config
end

.setupObject

Setup

Load the gill configuration files and parse options.



37
38
39
40
41
# File 'lib/gill/gill.rb', line 37

def Gill.setup
  Gill.config
  Gill.config.clean_cache
  optparse(*ARGV)
end