Class: Belly::Client::DefaultConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/belly/client/default_config.rb

Instance Method Summary collapse

Instance Method Details

#hostObject



11
12
13
# File 'lib/belly/client/default_config.rb', line 11

def host
  "belly.heroku.com"
end

#portObject



15
16
17
# File 'lib/belly/client/default_config.rb', line 15

def port
  80
end

#projectObject



3
4
5
# File 'lib/belly/client/default_config.rb', line 3

def project
  File.basename(Dir.pwd)
end

#urlObject



7
8
9
# File 'lib/belly/client/default_config.rb', line 7

def url
  "http://#{host}:#{port}"
end

#userObject



19
20
21
22
23
24
# File 'lib/belly/client/default_config.rb', line 19

def user
  {
    :name  => git_config('user.name'),
    :email => git_config('user.email')
  }
end