lib/smartdc/api/machines.rb in smartdc-0.3.0 vs lib/smartdc/api/machines.rb in smartdc-0.4.0

- old
+ new

@@ -26,35 +26,30 @@ end def delete raise ArgumentError unless id request.delete('my/machines/' + id.to_s) - request.response.status == 204 ? true : false end def stop raise ArgumentError unless id request.post('my/machines/' + id.to_s, {'action'=>'stop'}) - request.response.status == 202 ? true : false end def start raise ArgumentError unless id request.post('my/machines/' + id.to_s, {'action'=>'start'}) - request.response.status == 202 ? true : false end def reboot raise ArgumentError unless id request.post('my/machines/' + id.to_s, {'action'=>'reboot'}) - request.response.status == 202 ? true : false end def resize(params={}) raise ArgumentError unless id params[:action] = 'resize' request.post('my/machines/' + id.to_s, params) - request.response.status == 202 ? true : false end def tags(_id=nil) raise ArgumentError unless id Smartdc::Api::Machine::Tags.new(request, id, _id) \ No newline at end of file