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



53
54
55
56
57
58
59
# File 'lib/devcert/cli.rb', line 53

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

#genca(ca_name) ⇒ Object



29
30
31
32
33
34
35
36
# File 'lib/devcert/cli.rb', line 29

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

#issue(ca_bundle_path) ⇒ Object



88
89
90
91
92
93
94
95
96
# File 'lib/devcert/cli.rb', line 88

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