Class: JewelryPortfolio::Tasks

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|_self| ... } ⇒ Tasks

Initialize the JewelryPortfolio rake tasks. The JewelryPortfolio::Tasks instance is yielded so additional configuration can be performed.

If the repo you’re working in does not contain a gemspec file, then you’ll need to assign all values to the Repo yourself.

JewelryPortfolio::Tasks.new do |t|
  t.     = 'Fingertips'
  t.name        = 'passengerpane'
  t.version     = '1.2.0'
  t.summary     = 'A short summary about the project.'
  t.description = 'A longer description about the project.'
end

Yields:

  • (_self)

Yield Parameters:



41
42
43
44
45
# File 'lib/jewelry_portfolio/tasks.rb', line 41

def initialize
  @account = github_username
  yield self if block_given?
  define
end

Instance Attribute Details

#accountObject

The GitHub user account that this repo belongs to.



14
15
16
# File 'lib/jewelry_portfolio/tasks.rb', line 14

def 
  @account
end

#descriptionObject

The description of the project.



26
27
28
# File 'lib/jewelry_portfolio/tasks.rb', line 26

def description
  @description
end

#nameObject

The name of the repo.



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

def name
  @name
end

#summaryObject

The summary of the project.



23
24
25
# File 'lib/jewelry_portfolio/tasks.rb', line 23

def summary
  @summary
end

#versionObject

The version of the current version of the project.



20
21
22
# File 'lib/jewelry_portfolio/tasks.rb', line 20

def version
  @version
end