Class: Aptible::CLI::Helpers::App::OptionsHandleStrategy

Inherits:
Object
  • Object
show all
Defined in:
lib/aptible/cli/helpers/app.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ OptionsHandleStrategy

Returns a new instance of OptionsHandleStrategy.



42
43
44
45
# File 'lib/aptible/cli/helpers/app.rb', line 42

def initialize(options)
  @app_handle = options[:app]
  @env_handle = options[:environment]
end

Instance Attribute Details

#app_handleObject (readonly)

Returns the value of attribute app_handle.



40
41
42
# File 'lib/aptible/cli/helpers/app.rb', line 40

def app_handle
  @app_handle
end

#env_handleObject (readonly)

Returns the value of attribute env_handle.



40
41
42
# File 'lib/aptible/cli/helpers/app.rb', line 40

def env_handle
  @env_handle
end

Instance Method Details

#explainObject



51
52
53
# File 'lib/aptible/cli/helpers/app.rb', line 51

def explain
  '(options provided via CLI arguments)'
end

#usable?Boolean

Returns:

  • (Boolean)


47
48
49
# File 'lib/aptible/cli/helpers/app.rb', line 47

def usable?
  !app_handle.nil?
end