Module: Rookie

Defined in:
lib/rookie.rb,
lib/rookie/gem.rb,
lib/rookie/tasks.rb,
lib/rookie/tasks/gem.rb,
lib/rookie/tasks/git.rb,
lib/rookie/tasks/console.rb

Overview

Utilities to create and work with Ruby gems.

Author:

  • Matheus Afonso Martins Moreira

Defined Under Namespace

Classes: Gem, Tasks

Class Method Summary collapse

Class Method Details

.gemString

The gem directory, relative to the root.

Returns:

  • (String)

    the absolute path to the gem directory

Since:

  • 0.4.0



21
22
23
# File 'lib/rookie.rb', line 21

def gem
  File.join root, 'gem'
end

.licensesString

The licenses directory, relative to the gem directory.

Returns:

  • (String)

    the absolute path to the licenses directory

Since:

  • 0.4.0



29
30
31
# File 'lib/rookie.rb', line 29

def licenses
  File.join gem, 'licenses'
end

.rootString

Location of the Rookie gem.

Returns:

  • (String)

    the absolute path to the Rookie gem

Since:

  • 0.4.0



13
14
15
# File 'lib/rookie.rb', line 13

def root
  File.expand_path '..', File.dirname(__FILE__)
end

.templateString

The template directory, relative to the gem directory.

Returns:

  • (String)

    the absolute path to the template directory

Since:

  • 0.4.0



37
38
39
# File 'lib/rookie.rb', line 37

def template
  File.join gem, 'template'
end