Class: Realhq::Task
- Inherits:
-
Object
- Object
- Realhq::Task
- Defined in:
- lib/realhq/task.rb
Constant Summary collapse
- RAKE_NAMESPACE_DELIMITER =
":"
Instance Method Summary collapse
- #application_url ⇒ Object
- #github_url ⇒ Object
-
#initialize(rake_task) ⇒ Task
constructor
A new instance of Task.
- #name ⇒ Object
- #namespace ⇒ Object
- #open ⇒ Object
- #portfolio_url ⇒ Object
- #resume_url ⇒ Object
- #riversideio_url ⇒ Object
- #riversidejs_url ⇒ Object
- #startupie_url ⇒ Object
- #twitter_url ⇒ Object
Constructor Details
#initialize(rake_task) ⇒ Task
Returns a new instance of Task.
5 6 7 8 |
# File 'lib/realhq/task.rb', line 5 def initialize(rake_task) @url = nil @rake_task = rake_task end |
Instance Method Details
#application_url ⇒ Object
53 54 55 56 |
# File 'lib/realhq/task.rb', line 53 def application_url @url = "https://gist.github.com/scottmotte/3d83f73d58b1fb994f26" @url end |
#github_url ⇒ Object
18 19 20 21 |
# File 'lib/realhq/task.rb', line 18 def github_url @url = ["https://", name, ".com/", namespace].join @url end |
#name ⇒ Object
10 11 12 |
# File 'lib/realhq/task.rb', line 10 def name split_rake_task[-1] end |
#namespace ⇒ Object
14 15 16 |
# File 'lib/realhq/task.rb', line 14 def namespace split_rake_task[-2] end |
#open ⇒ Object
58 59 60 61 |
# File 'lib/realhq/task.rb', line 58 def open puts @url Launchy.open(@url) end |
#portfolio_url ⇒ Object
28 29 30 31 |
# File 'lib/realhq/task.rb', line 28 def portfolio_url @url = ["http://", namespace, ".com"].join @url end |
#resume_url ⇒ Object
23 24 25 26 |
# File 'lib/realhq/task.rb', line 23 def resume_url @url = ["http://", namespace, ".com/assets/resume.pdf"].join @url end |
#riversideio_url ⇒ Object
48 49 50 51 |
# File 'lib/realhq/task.rb', line 48 def riversideio_url @url = ["http://riverside.io"].join @url end |
#riversidejs_url ⇒ Object
38 39 40 41 |
# File 'lib/realhq/task.rb', line 38 def riversidejs_url @url = ["http://meetup.com/riversidejs"].join @url end |
#startupie_url ⇒ Object
43 44 45 46 |
# File 'lib/realhq/task.rb', line 43 def startupie_url @url = ["http://meetup.com/startupie"].join @url end |
#twitter_url ⇒ Object
33 34 35 36 |
# File 'lib/realhq/task.rb', line 33 def twitter_url @url = ["http://twitter.com/", namespace].join @url end |