Class: Belly::Client::DefaultConfig
- Inherits:
-
Object
- Object
- Belly::Client::DefaultConfig
- Defined in:
- lib/belly/client/default_config.rb
Instance Method Summary collapse
Instance Method Details
#host ⇒ Object
11 12 13 |
# File 'lib/belly/client/default_config.rb', line 11 def host "belly.heroku.com" end |
#port ⇒ Object
15 16 17 |
# File 'lib/belly/client/default_config.rb', line 15 def port 80 end |
#project ⇒ Object
3 4 5 |
# File 'lib/belly/client/default_config.rb', line 3 def project File.basename(Dir.pwd) end |
#url ⇒ Object
7 8 9 |
# File 'lib/belly/client/default_config.rb', line 7 def url "http://#{host}:#{port}" end |
#user ⇒ Object
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 |