Class: Heroku::Command::Base
- Inherits:
-
Object
- Object
- Heroku::Command::Base
- Includes:
- Helpers
- Defined in:
- lib/heroku/command/base.rb
Instance Attribute Summary (collapse)
-
- (Object) args
readonly
Returns the value of attribute args.
-
- (Object) options
readonly
Returns the value of attribute options.
Class Method Summary (collapse)
Instance Method Summary (collapse)
- - (Object) heroku
-
- (Base) initialize(args = [], options = {})
constructor
A new instance of Base.
- - (Object) rendezvous
Methods included from Helpers
#app_urls, #ask, #confirm, #confirm_billing, #confirm_command, #create_git_remote, #deprecate, #display, #display_row, #display_table, #error, #fail, #format_bytes, #format_date, #get_terminal_environment, #git, #has_git?, #home_directory, #json_decode, #json_encode, #longest, #quantify, #redisplay, #retry_on_exception, #run_command, #running_on_a_mac?, #running_on_windows?, #set_buffer, #shell, #time_ago, #truncate
Constructor Details
- (Base) initialize(args = [], options = {})
A new instance of Base
16 17 18 19 |
# File 'lib/heroku/command/base.rb', line 16 def initialize(args=[], ={}) @args = args @options = end |
Instance Attribute Details
- (Object) args (readonly)
Returns the value of attribute args
13 14 15 |
# File 'lib/heroku/command/base.rb', line 13 def args @args end |
- (Object) options (readonly)
Returns the value of attribute options
14 15 16 |
# File 'lib/heroku/command/base.rb', line 14 def @options end |
Class Method Details
+ (Object) namespace
9 10 11 |
# File 'lib/heroku/command/base.rb', line 9 def self.namespace self.to_s.split("::").last.downcase end |
Instance Method Details
- (Object) heroku
21 22 23 |
# File 'lib/heroku/command/base.rb', line 21 def heroku Heroku::Auth.client end |
- (Object) rendezvous
25 26 27 28 |
# File 'lib/heroku/command/base.rb', line 25 def rendezvous $stdout.sync = true @rendezvous ||= Heroku::Client::Rendezvous.new($stdin, $stdout) end |