Class: PGit::StoryBranch::Application
- Inherits:
-
Object
- Object
- PGit::StoryBranch::Application
- Defined in:
- lib/pgit/story_branch/application.rb
Instance Method Summary collapse
-
#initialize(global_options, options, arguments) ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize(global_options, options, arguments) ⇒ Application
Returns a new instance of Application.
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/pgit/story_branch/application.rb', line 4 def initialize(, , arguments) if story_id = [:start] story = PGit::Pivotal::Story.new(story_id) story.get! name_parser = PGit::StoryBranch::NameParser.new(story) story_branch = PGit::StoryBranch.new(name_parser) story_branch.start else puts `pgit story_branch --help` end end |