Class: Jiveapps::Command::BaseWithApp

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

Direct Known Subclasses

Livedev, Oauth, Sharing

Instance Attribute Summary collapse

Attributes inherited from Base

#args, #autodetected_app

Instance Method Summary collapse

Methods inherited from Base

#extract_app, #extract_app_from_git_config, #extract_app_in_dir, #extract_option, #git_remotes, #jiveapps

Methods included from Helpers

#ask, #catch_args, #check_git_version, #confirm, #confirm_command, #debug, #debug_mode?, #display, #display_oauth_services, #error, #get_app_prop_with_default, #get_or_set_git_prop, #git_version, #has_program?, #home_directory, #run, #running_on_a_mac?, #running_on_windows?, #sh, #usage, #user_git_version

Constructor Details

#initialize(args, jiveapps = nil) ⇒ BaseWithApp

Returns a new instance of BaseWithApp.



93
94
95
96
# File 'lib/jiveapps/commands/base.rb', line 93

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

Instance Attribute Details

#appObject

Returns the value of attribute app.



91
92
93
# File 'lib/jiveapps/commands/base.rb', line 91

def app
  @app
end