Class: Typekitable::Commander
- Inherits:
-
Thor
- Object
- Thor
- Typekitable::Commander
- Includes:
- Thor::Actions
- Defined in:
- lib/typekitable/commander.rb
Instance Method Summary collapse
- #kit_add(name, domains) ⇒ Object
- #kit_info(kit_id) ⇒ Object
- #kit_list ⇒ Object
- #kit_publish(kit_id) ⇒ Object
- #re_authenticate ⇒ Object
Instance Method Details
#kit_add(name, domains) ⇒ Object
19 20 21 22 23 24 |
# File 'lib/typekitable/commander.rb', line 19 def kit_add(name, domains) response = response_for_command(:kit_add, { :name => name, :domains => [domains] }) result = formatted_response(response) result.output_heading result.output_body end |
#kit_info(kit_id) ⇒ Object
27 28 29 30 31 |
# File 'lib/typekitable/commander.rb', line 27 def kit_info(kit_id) result = formatted_response(response_for_command(:kit_info, {}, kit_id)) result.output_heading result.output_body end |
#kit_list ⇒ Object
12 13 14 15 16 |
# File 'lib/typekitable/commander.rb', line 12 def kit_list result = formatted_response(response_for_command(:kit_list)) result.output_heading result.output_body end |
#kit_publish(kit_id) ⇒ Object
34 35 36 37 38 |
# File 'lib/typekitable/commander.rb', line 34 def kit_publish(kit_id) result = formatted_response(response_for_command(:kit_publish, {}, kit_id)) result.output_heading result.output_body end |
#re_authenticate ⇒ Object
6 7 8 9 |
# File 'lib/typekitable/commander.rb', line 6 def re_authenticate Authenticator.new.get_authentication invoke :help end |