Class: Aptible::CLI::Helpers::App::OptionsHandleStrategy
- Inherits:
-
Object
- Object
- Aptible::CLI::Helpers::App::OptionsHandleStrategy
- Defined in:
- lib/aptible/cli/helpers/app.rb
Instance Attribute Summary collapse
-
#app_handle ⇒ Object
readonly
Returns the value of attribute app_handle.
-
#env_handle ⇒ Object
readonly
Returns the value of attribute env_handle.
Instance Method Summary collapse
- #explain ⇒ Object
-
#initialize(options) ⇒ OptionsHandleStrategy
constructor
A new instance of OptionsHandleStrategy.
- #usable? ⇒ Boolean
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() @app_handle = [:app] @env_handle = [:environment] end |
Instance Attribute Details
#app_handle ⇒ Object (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_handle ⇒ Object (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
#explain ⇒ Object
51 52 53 |
# File 'lib/aptible/cli/helpers/app.rb', line 51 def explain '(options provided via CLI arguments)' end |
#usable? ⇒ Boolean
47 48 49 |
# File 'lib/aptible/cli/helpers/app.rb', line 47 def usable? !app_handle.nil? end |