Sha256: 051855b19caece6fd5d617bca5645d32e3e412ea882ebeb94908c119deb65695
Contents?: true
Size: 670 Bytes
Versions: 12
Compression:
Stored size: 670 Bytes
Contents
module Localeapp module CLI class Remove < Command include ::Localeapp::ApiCall def execute(key, *rest) @output.puts "Localeapp rm" @output.puts "" @output.puts "Remove key: #{key}" api_call :remove, :url_options => { :key => key }, :success => :report_success, :failure => :report_failure, :max_connection_attempts => 1 end def report_success(response) @output.puts "Success!" end def report_failure(response) @output.puts "Failed!" fail APIResponseError, "API returned #{response.code} status code" end end end end
Version data entries
12 entries across 12 versions & 1 rubygems