lib/git_flower/story.rb in git_flower-0.1.3 vs lib/git_flower/story.rb in git_flower-0.2.0

- old
+ new

@@ -1,8 +1,9 @@ require 'shellwords' require 'yaml' require 'active_support' +require_relative 'git_service' require_relative 'git_repository' require_relative 'pivotal_project' module GitFlower class Story @@ -22,11 +23,11 @@ owner_usernames: derive_story_owners) puts "Your pivotal story is https://www.pivotaltracker.com/story/show/#{story.id}" puts "Creating #{type} branch for #{story_name}" - GitRepository. - new(Dir.pwd). + GitService. + new(repository: GitFlower::GitRepository.new(Dir.pwd)). start_branch(name: story_name, id: story.id, type: type) end private