Class: Chimps::Commands::Delete
- Inherits:
-
Chimps::Command
- Object
- Chimps::Command
- Chimps::Commands::Delete
- Includes:
- Utils::ExplicitPath, Utils::HttpFormat
- Defined in:
- lib/chimps-cli/commands/delete.rb
Constant Summary collapse
- USAGE =
"usage: chimps delete [OPTIONS] PATH"
- HELP =
<<EOF Send a DELETE request to the given PATH at Infochimps. Examples: $ chimps delete /datasets/my-crappy-dataset $ chimps delete /sources/my-broken-source EOF
Instance Attribute Summary
Attributes inherited from Chimps::Command
Instance Method Summary collapse
Methods included from Utils::ExplicitPath
#path, #query_params, #raw_path
Methods included from Utils::HttpFormat
#headers, included, #normalize_fmt
Methods inherited from Chimps::Command
Constructor Details
This class inherits a constructor from Chimps::Command
Instance Method Details
#execute! ⇒ Object
20 21 22 23 24 |
# File 'lib/chimps-cli/commands/delete.rb', line 20 def execute! response = Chimps::Request.new(path, :query_params => query_params, :sign => config[:sign]).delete(headers) response.print_headers if config[:headers] response.print end |