Top Level Namespace

Defined Under Namespace

Modules: AdobeCRX, Net

Constant Summary collapse

ADOBE_CRX_VERSION =
"0.0.4"

Instance Method Summary collapse

Instance Method Details

#validate_global_options(command, options) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/adobe_crx/cli.rb', line 14

def validate_global_options(command, options)
  if !options.host
    options.host = ask 'CRX host:'
  end
  if !options.port
    options.port = ask 'CRX port:'
  else
    options.port = options.port.to_i
  end
  if !options.username
    options.username = ask 'CRX username:'
  end
  if !options.password
    options.password = password('CRX password:')
  end
end