Module: ToTubePrompter

Included in:
Resources::Tube
Defined in:
lib/pvdgm-bs-client/prompters/to_tube_prompter.rb

Instance Method Summary collapse

Instance Method Details

#to_tube_name(allow_none = false) ⇒ Object



3
4
5
6
7
# File 'lib/pvdgm-bs-client/prompters/to_tube_prompter.rb', line 3

def to_tube_name(allow_none=false)
  return options[:to_tube] if options[:to_tube]
  return options[:to_tube] = ENV['TO_TUBE_NAME'] if ENV['TO_TUBE_NAME']
  return options[:to_tube] = prompt_for_to_tube_name(allow_none)
end