Class: Gemplate::Gem

Inherits:
Object
  • Object
show all
Defined in:
lib/gemplate.rb

Overview

Gem directory object

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Gem

Returns a new instance of Gem


24
25
26
27
28
29
30
31
# File 'lib/gemplate.rb', line 24

def initialize(params = {})
  @name = params[:name]
  @user = params[:user]
  @full_name = params[:full_name]
  @email = params[:email]
  @irc_stanza = params[:irc_stanza]
  @license = params[:license]
end

Instance Method Details

#createObject


33
34
35
36
37
38
39
40
41
# File 'lib/gemplate.rb', line 33

def create
  create_directory
  Dir.chdir @name
  add_license
  process_templates
  adjust_files
  make_repo
  Dir.chdir '..'
end