module DTK::Client::CommandBase
Public Class Methods
handle_argument_error(task, error)
click to toggle source
Calls superclass method
# File lib/commands.rb, line 45 def self.handle_argument_error(task, error) super end
Public Instance Methods
get(url)
click to toggle source
# File lib/commands.rb, line 26 def get(url) get_connection.get(self.class,url) end
get_connection()
click to toggle source
# File lib/commands.rb, line 41 def get_connection DTK::Client::Session.get_connection() end
post(url,body=nil)
click to toggle source
# File lib/commands.rb, line 29 def post(url,body=nil) get_connection.post(self.class,url,body) end
post_file(url,body=nil)
click to toggle source
# File lib/commands.rb, line 33 def post_file(url,body=nil) get_connection.post_file(self.class,url,body) end
rest_url(route)
click to toggle source
# File lib/commands.rb, line 37 def rest_url(route) get_connection.rest_url(route) end
rotate_args(rotated_args)
click to toggle source
TODO: temp workaround
# File lib/commands.rb, line 22 def rotate_args(rotated_args) [rotated_args.last] + rotated_args[0..rotated_args.size-2] end
Private Instance Methods
pretty_print_cols()
click to toggle source
# File lib/commands.rb, line 51 def pretty_print_cols() self.class.pretty_print_cols() end