Method: CloudFlock::App#check_option_fs
- Defined in:
- lib/cloudflock/app.rb
#check_option_fs(options, name, prompt, prompt_options = {}) ⇒ Object
Public: Wrap check_option, allowing for filesystem autocompletion in user response if the option is not set.
options - Hash containing options to test against. name - The key in the options Hash expected to contain the
response desired.
prompt - Prompt to present to the user. prompt_options - Options to pass along to ConsoleGlitter::UI#prompt.
(default: {})
Returns the contents of the options or else a String if options is nil.
42 43 44 45 46 |
# File 'lib/cloudflock/app.rb', line 42 def check_option_fs(, name, prompt, = {}) return [name] unless [name].nil? [name] = UI.prompt_filesystem(prompt, ) end |