Class: Heroku::Command::BaseWithApp

Inherits:
Base
  • Object
show all
Defined in:
lib/heroku/commands/base.rb

Direct Known Subclasses

Addons, Bundles, Config, Db, Domains, Logs, Maintenance, Sharing, Ssl

Instance Attribute Summary collapse

Attributes inherited from Base

#args, #autodetected_app

Instance Method Summary collapse

Methods inherited from Base

#app_urls, #ask, #display, #error, #escape, #extract_app, #extract_app_in_dir, #extract_option, #format_date, #git_remotes, #git_url, #heroku, #shell, #web_url

Methods included from Helpers

#home_directory, #running_on_a_mac?, #running_on_windows?

Constructor Details

#initialize(args, heroku = nil) ⇒ BaseWithApp

Returns a new instance of BaseWithApp.



128
129
130
131
# File 'lib/heroku/commands/base.rb', line 128

def initialize(args, heroku=nil)
	super(args, heroku)
	@app ||= extract_app
end

Instance Attribute Details

#appObject

Returns the value of attribute app.



126
127
128
# File 'lib/heroku/commands/base.rb', line 126

def app
  @app
end