Sha256: 98c39aced8e1b9b0048489aef18863a977003a8969b92b0e82f018888faeb655

Contents?: true

Size: 236 Bytes

Versions: 2

Compression:

Stored size: 236 Bytes

Contents

#!/usr/bin/env ruby

require 'launchy'
repo = `git config remote.origin.url`[/github\.com[:\/](.*?)(\.git)?$/, 1]
if repo && !repo.empty?
  Launchy.open "https://github.com/#{repo}"
else
  $stderr.puts "No github origin repo found"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
website-1.0.1 bin/website
website-1.0.0 bin/website