Class: GitPivot::Manager

Inherits:
Thor
  • Object
show all
Includes:
Shared
Defined in:
lib/git-pivot/manager.rb

Instance Method Summary collapse

Methods included from Shared

#input, #out

Instance Method Details

#deliverObject



37
38
39
40
41
# File 'lib/git-pivot/manager.rb', line 37

def deliver
  GitPivot::Pivotal.deliver
  GitPivot::Git.deliver
  out "Story complete."
end

#finishObject



30
31
32
33
34
# File 'lib/git-pivot/manager.rb', line 30

def finish
  GitPivot::Pivotal.finish
  GitPivot::Git.finish(options[:commit])
  out "Story complete."
end

#infoObject



11
12
13
14
# File 'lib/git-pivot/manager.rb', line 11

def info
  out GitPivot::Git.info
  out GitPivot::Pivotal.info
end

#start(ticket = nil) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/git-pivot/manager.rb', line 18

def start(ticket=nil)
  id, type, text = GitPivot::Pivotal.start(ticket, options[:mine])
  
  out text
  out GitPivot::Git.start(id, type)
  out "You are now licensed to develop. Godspeed."
end