Skip to content

Commit

Permalink
Tweak load path to avoid requiring absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
wireframe committed Dec 10, 2014
1 parent 230b2fc commit 8be78d1
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 11 deletions.
3 changes: 2 additions & 1 deletion bin/git-buildtag
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'buildtag_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/buildtag_command'
args = ARGV.dup.unshift('buildtag')
Thegarage::Gitx::Cli::BuildtagCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-cleanup
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'cleanup_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/cleanup_command'
args = ARGV.dup.unshift('cleanup')
Thegarage::Gitx::Cli::CleanupCommand.start(args)

3 changes: 2 additions & 1 deletion bin/git-integrate
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'integrate_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/integrate_command'
args = ARGV.dup.unshift('integrate')
Thegarage::Gitx::Cli::IntegrateCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-nuke
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'nuke_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/nuke_command'
args = ARGV.dup.unshift('nuke')
Thegarage::Gitx::Cli::NukeCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-release
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'release_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/release_command'
args = ARGV.dup.unshift('release')
Thegarage::Gitx::Cli::ReleaseCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-review
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'review_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/review_command'
args = ARGV.dup.unshift('review')
Thegarage::Gitx::Cli::ReviewCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-reviewrequest
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

puts 'WARNING: git reviewrequest has been deprecated. use `git review` instead'

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'review_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/review_command'
args = ARGV.dup.unshift('review')
Thegarage::Gitx::Cli::ReviewCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-share
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'share_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/share_command'
args = ARGV.dup.unshift('share')
Thegarage::Gitx::Cli::ShareCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-start
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'start_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/start_command'
args = ARGV.dup.unshift('start')
Thegarage::Gitx::Cli::StartCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-track
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'track_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/track_command'
args = ARGV.dup.unshift('track')
Thegarage::Gitx::Cli::TrackCommand.start(args)
3 changes: 2 additions & 1 deletion bin/git-update
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env ruby

require File.join(File.dirname(__FILE__), '..', 'lib', 'thegarage/gitx/cli', 'update_command.rb')
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'thegarage/gitx/cli/update_command'
args = ARGV.dup.unshift('update')
Thegarage::Gitx::Cli::UpdateCommand.start(args)

0 comments on commit 8be78d1

Please sign in to comment.