Class: DevCert::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/devcert/cli.rb

Instance Method Summary collapse

Instance Method Details

#export(bundle_path) ⇒ Object



67
68
69
70
71
72
73
# File 'lib/devcert/cli.rb', line 67

def export(bundle_path)
  ::DevCert::Export.export(
    ::File.absolute_path(bundle_path, ::Dir.pwd),
    options[:type],
    options[:output]
  )
end

#genca(ca_name) ⇒ Object



41
42
43
44
45
46
47
48
49
50
# File 'lib/devcert/cli.rb', line 41

def genca(ca_name)
  ::DevCert::GenCA.generate_ca(
    ca_name,
    options[:output],
    options[:key_type],
    options[:rsa_key_size],
    options[:ec_key_size],
    options[:validity]
  )
end

#issue(ca_bundle_path) ⇒ Object



114
115
116
117
118
119
120
121
122
123
124
# File 'lib/devcert/cli.rb', line 114

def issue(ca_bundle_path)
  ::DevCert::Issue.issue(
    ::File.absolute_path(ca_bundle_path, ::Dir.pwd),
    options[:domains],
    options[:output],
    options[:key_type],
    options[:rsa_key_size],
    options[:ec_key_size],
    options[:validity]
  )
end