Module: Envo::CmdRun::Opts

Extended by:
Opts
Included in:
Opts
Defined in:
lib/envo/cmd_run.rb

Instance Method Summary collapse

Instance Method Details

#parse_script(opt) ⇒ Object



33
34
35
36
37
38
39
40
41
# File 'lib/envo/cmd_run.rb', line 33

def parse_script(opt)
  case opt
  when 'force' then return {interact: :force}
  when 'no-force' then return {interact: :noforce}
  when 'interactive' then return {interact: :interact}
  when 'raw' then return {raw: true}
  else raise Envo::Error.new "script option: #{opt}"
  end
end