Module: BP

Extended by:
BP
Included in:
BP
Defined in:
lib/bp.rb,
lib/bp/cm1.rb,
lib/bp/gem.rb,
lib/bp/main.rb,
lib/bp/github.rb,
lib/bp/heroku.rb,
lib/bp/script.rb,
lib/bp/emitter.rb,
lib/bp/version.rb,
lib/bp/hootroot.rb

Defined Under Namespace

Classes: Cm1, Emitter, Gem, Github, Heroku, Hootroot, Main, Script

Constant Summary collapse

CAMPFIRE_TOKEN =
'0fcaae1c3c126c9e9aa96ccee5e604045704a196'
TRAVIS_CI_TOKEN =
'JQd4gdfRIe1efxV1MywDYFULY12ESnkpO8tNp5uzEgFaZV9iti5bDEMz'
STAFF =
{
  :andy => {
    :rubygems => '[email protected]',
    :github => 'rossmeissl'
  },
  :derek => {
    :rubygems => '[email protected]',
    :github => 'dkastner'
  },
  :ian => {
    :rubygems => '[email protected]',
    :github => 'ihough'
  },
  :seamus => { 
    :rubygems => '[email protected]',
    :github => 'seamusabshere'
  }
}
GEMS =
%w{carbon charisma data_miner earth loose_tight_dictionary sniff}
APPS =
%w{app1 cm1-rack concur1 data1 dnb1 keyring1 mastercard1 priceline1 root1 status3 zillow1}
VERSION =
"0.0.5"

Instance Method Summary collapse

Instance Method Details

#git_remote(name) ⇒ Object



47
48
49
# File 'lib/bp.rb', line 47

def git_remote(name)
  `git remote show #{name} | awk {'print $3'}`.lines.to_a[2].chomp.sub(/.*:/,'')
end

#github_repo_nameObject



38
39
40
41
# File 'lib/bp.rb', line 38

def github_repo_name
  @origin_url ||= git_remote('origin')
  File.basename(@origin_url, '.git')
end

#heroku_repo_nameObject



42
43
44
45
# File 'lib/bp.rb', line 42

def heroku_repo_name
  @heroku_url ||= git_remote('heroku')
  File.basename(@heroku_url, '.git')
end