Class: Digicert::CLI::Commands::Order

Inherits:
Thor
  • Object
show all
Defined in:
lib/digicert/cli/commands/order.rb

Instance Method Summary collapse

Instance Method Details

#create(name_id) ⇒ Object



54
55
56
57
58
59
60
# File 'lib/digicert/cli/commands/order.rb', line 54

def create(name_id)
  order = create_new_order(name_id, options)
  say("New Order Created! Oder Id: #{order.id}.")

rescue Digicert::Errors::RequestError => error
  say("Request Error: #{error}.")
end

#duplicate(order_id) ⇒ Object



68
69
70
# File 'lib/digicert/cli/commands/order.rb', line 68

def duplicate(order_id)
  say(duplicate_an_order(order_id))
end

#findObject



23
24
25
# File 'lib/digicert/cli/commands/order.rb', line 23

def find
  say(order_instance.find)
end

#listObject



15
16
17
# File 'lib/digicert/cli/commands/order.rb', line 15

def list
  say(order_instance.list)
end

#reissue(order_id) ⇒ Object



33
34
35
# File 'lib/digicert/cli/commands/order.rb', line 33

def reissue(order_id)
  say(reissue_an_order(order_id))
end