Class: JewelryPortfolio::Tasks
- Inherits:
-
Object
- Object
- JewelryPortfolio::Tasks
- Defined in:
- lib/jewelry_portfolio/tasks.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
The GitHub user account that this repo belongs to.
-
#description ⇒ Object
The description of the project.
-
#name ⇒ Object
The name of the repo.
-
#summary ⇒ Object
The summary of the project.
-
#version ⇒ Object
The version of the current version of the project.
Instance Method Summary collapse
-
#initialize {|_self| ... } ⇒ Tasks
constructor
Initialize the JewelryPortfolio rake tasks.
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.account = '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
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
#account ⇒ Object
The GitHub user account that this repo belongs to.
14 15 16 |
# File 'lib/jewelry_portfolio/tasks.rb', line 14 def account @account end |
#description ⇒ Object
The description of the project.
26 27 28 |
# File 'lib/jewelry_portfolio/tasks.rb', line 26 def description @description end |
#name ⇒ Object
The name of the repo.
17 18 19 |
# File 'lib/jewelry_portfolio/tasks.rb', line 17 def name @name end |
#summary ⇒ Object
The summary of the project.
23 24 25 |
# File 'lib/jewelry_portfolio/tasks.rb', line 23 def summary @summary end |
#version ⇒ Object
The version of the current version of the project.
20 21 22 |
# File 'lib/jewelry_portfolio/tasks.rb', line 20 def version @version end |