Permalink
Browse files

initial frameworking

  • Loading branch information...
0 parents commit 036e3b0be72f44206e6bec07228444830559fd56 @plukevdh committed May 10, 2011
Showing with 87 additions and 0 deletions.
  1. +4 −0 .gitignore
  2. +4 −0 Gemfile
  3. +2 −0 Rakefile
  4. +6 −0 bin/git-pivot
  5. +21 −0 git-pivot.gemspec
  6. +5 −0 lib/git-pivot.rb
  7. +19 −0 lib/git-pivot/git.rb
  8. +16 −0 lib/git-pivot/manager.rb
  9. +10 −0 lib/git-pivot/pivotal.rb
4 .gitignore
@@ -0,0 +1,4 @@
+*.gem
+.bundle
+Gemfile.lock
+pkg/*
4 Gemfile
@@ -0,0 +1,4 @@
+source "http://rubygems.org"
+
+# Specify your gem's dependencies in git-pivot.gemspec
+gemspec
2 Rakefile
@@ -0,0 +1,2 @@
+require 'bundler'
+Bundler::GemHelper.install_tasks
6 bin/git-pivot
@@ -0,0 +1,6 @@
+#!/usr/bin/env ruby
+$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
+
+require 'git-pivot/manager'
+Manager.start
+
21 git-pivot.gemspec
@@ -0,0 +1,21 @@
+# -*- encoding: utf-8 -*-
+
+Gem::Specification.new do |s|
+ s.name = "git-pivot"
+ s.version = "0.0.1"
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Luke van der Hoeven"]
+ s.email = ["hungerandthirst@gmail.com"]
+ s.homepage = ""
+ s.summary = %q{GitPivot: Integrate your git and pivotal workflow.}
+ s.description = %q{GitPivot is a Git/Github/PivotalTracker integration toolset. It tries to lighten you workflow to a smaller set of commands.}
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
+
+ s.add_dependency "grit"
+ s.add_dependency "pivotal-tracker"
+ s.add_dependency "thor"
+end
5 lib/git-pivot.rb
@@ -0,0 +1,5 @@
+module GitPivot
+ autoload :Git, 'git-pivot/git'
+ autoload :Pivotal, 'git-pivot/pivotal'
+ autoload :Manager, 'git-pivot/manager'
+end
19 lib/git-pivot/git.rb
@@ -0,0 +1,19 @@
+require 'grit'
+
+module GitPivot
+ class Git
+ class << self
+ def start
+
+ end
+
+ def repo
+ Grit::Repo.new(`pwd`.strip)
+ end
+
+ def branch
+ Grit::Branch
+ end
+ end
+ end
+end
16 lib/git-pivot/manager.rb
@@ -0,0 +1,16 @@
+# This class manage all input from the cli
+# It passes off commands to their respective handlers
+# letting you manage branches, tickets, from the cli
+require 'thor'
+
+module GitPivot
+ class Manager < Thor
+
+ desc "info", "Gives you current PivotalTracker/Github information about the current ticket."
+ def info
+
+ end
+ end
+end
+
+
10 lib/git-pivot/pivotal.rb
@@ -0,0 +1,10 @@
+require 'pivotal-tracker'
+
+module GitPivot
+ class Pivotal
+ def initialize(ticket)
+
+ end
+ end
+end
+

0 comments on commit 036e3b0

Please sign in to comment.