Class: Nuke::Client::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/nuke/client/command.rb

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Command

Returns a new instance of Command.



7
8
9
# File 'lib/nuke/client/command.rb', line 7

def initialize url
  @url = url
end

Instance Method Details

#destroyObject



15
16
17
# File 'lib/nuke/client/command.rb', line 15

def destroy
  RestClient.delete url
end

#push(features) ⇒ Object



11
12
13
# File 'lib/nuke/client/command.rb', line 11

def push features
  RestClient.put url("/features/"), jsonify(features), json_headers
end