Sha256: d536cad346d242c518ea546b3df2acce02167c73382efbb22de71d3ed020107f

Contents?: true

Size: 582 Bytes

Versions: 3

Compression:

Stored size: 582 Bytes

Contents

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)
          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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pgit-0.0.4 lib/pgit/story_branch/application.rb
pgit-0.0.3 lib/pgit/story_branch/application.rb
pgit-0.0.2 lib/pgit/story_branch/application.rb