Module: Pindo::AppConfigOptions
- Defined in:
- lib/pindo/options/appconfigoptions.rb
Instance Attribute Summary collapse
-
#args_bundle_id ⇒ Object
Returns the value of attribute args_bundle_id.
Instance Method Summary collapse
Instance Attribute Details
#args_bundle_id ⇒ Object
Returns the value of attribute args_bundle_id.
6 7 8 |
# File 'lib/pindo/options/appconfigoptions.rb', line 6 def args_bundle_id @args_bundle_id end |
Instance Method Details
#initialize(argv) ⇒ Object
8 9 10 11 12 |
# File 'lib/pindo/options/appconfigoptions.rb', line 8 def initialize(argv) @args_bundle_id = argv.option('a') super @additional_args = argv.remainder! end |
#validate! ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/pindo/options/appconfigoptions.rb', line 14 def validate! super if @args_bundle_id.nil? say "You need input a bundle id" @args_bundle_id = ask('Bundle Id : ') || nil end help! 'You need input a bundle id' if @args_bundle_id.nil? || @args_bundle_id.empty? end |