Class: Realhq::Task

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

Constant Summary collapse

RAKE_NAMESPACE_DELIMITER =
":"

Instance Method Summary collapse

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_urlObject



53
54
55
56
# File 'lib/realhq/task.rb', line 53

def application_url
  @url = "https://gist.github.com/scottmotte/3d83f73d58b1fb994f26"
  @url
end

#github_urlObject



18
19
20
21
# File 'lib/realhq/task.rb', line 18

def github_url
  @url = ["https://", name, ".com/", namespace].join
  @url
end

#nameObject



10
11
12
# File 'lib/realhq/task.rb', line 10

def name
  split_rake_task[-1]
end

#namespaceObject



14
15
16
# File 'lib/realhq/task.rb', line 14

def namespace
  split_rake_task[-2]
end

#openObject



58
59
60
61
# File 'lib/realhq/task.rb', line 58

def open
  puts @url
  Launchy.open(@url)
end

#portfolio_urlObject



28
29
30
31
# File 'lib/realhq/task.rb', line 28

def portfolio_url
  @url = ["http://", namespace, ".com"].join
  @url
end

#resume_urlObject



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_urlObject



48
49
50
51
# File 'lib/realhq/task.rb', line 48

def riversideio_url
  @url = ["http://riverside.io"].join
  @url
end

#riversidejs_urlObject



38
39
40
41
# File 'lib/realhq/task.rb', line 38

def riversidejs_url
  @url = ["http://meetup.com/riversidejs"].join
  @url
end

#startupie_urlObject



43
44
45
46
# File 'lib/realhq/task.rb', line 43

def startupie_url
  @url = ["http://meetup.com/startupie"].join
  @url
end

#twitter_urlObject



33
34
35
36
# File 'lib/realhq/task.rb', line 33

def twitter_url
  @url = ["http://twitter.com/", namespace].join
  @url
end