Class: Digicert::CLI::Commands::Order
- Inherits:
-
Thor
- Object
- Thor
- Digicert::CLI::Commands::Order
- Defined in:
- lib/digicert/cli/commands/order.rb
Instance Method Summary collapse
- #create(name_id) ⇒ Object
- #duplicate(order_id) ⇒ Object
- #find ⇒ Object
- #list ⇒ Object
- #reissue(order_id) ⇒ Object
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, ) 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 |
#find ⇒ Object
23 24 25 |
# File 'lib/digicert/cli/commands/order.rb', line 23 def find say(order_instance.find) end |
#list ⇒ Object
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 |