class Typekitable::Commander
Public Instance Methods
formatted_response(response)
click to toggle source
# File lib/typekitable/commander.rb, line 45 def formatted_response(response) ResponseFormatter.new(response) end
kit_add(name, domains)
click to toggle source
# 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)
click to toggle source
# 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()
click to toggle source
# 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)
click to toggle source
# 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()
click to toggle source
# File lib/typekitable/commander.rb, line 6 def re_authenticate Authenticator.new.get_authentication invoke :help end
response_for_command(command_type, options = {}, resource_id = nil)
click to toggle source
# File lib/typekitable/commander.rb, line 41 def response_for_command(command_type, options = {}, resource_id = nil) RequestFetcher.new(command_type, options, resource_id).response end