Module: ServicePrompter

Included in:
Resources::MdsPullAccount, Resources::Service, Resources::ServiceDefinition
Defined in:
lib/pvdgm-svc-client/prompters/service_prompter.rb

Instance Method Summary collapse

Instance Method Details

#service_id(allow_none = false) ⇒ Object



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

def service_id(allow_none=false)
  return options[:service_id] if options[:service_id]
  return options[:service_id] = ENV['SERVICE_ID'] if ENV['SERVICE_ID']
  return options[:service_id] = prompt_for_service_id(allow_none)
end