lib/pgit/story_branch/application.rb in pgit-0.0.4 vs lib/pgit/story_branch/application.rb in pgit-1.0.0

- old
+ new

@@ -1,12 +1,12 @@ module PGit class StoryBranch class Application def initialize(global_options, options, arguments) if story_id = options[:start] - config_yaml = PGit::Configuration.new.to_yaml - current_project = PGit::CurrentProject.new(config_yaml) - story = PGit::Story.get(story_id, current_project) + 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