Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updated destory method, needed authentication adding

  • Loading branch information...
commit a25ad95b6061d5fb08c993d1c8be77a6cccd0d4d 1 parent f67aa38
@matt-crazypanda matt-crazypanda authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/wally
View
6 bin/wally
@@ -19,8 +19,8 @@ elsif ARGV[0] == "push"
end
features << {:path => feature_path, :gherkin => gherkin}
end
- RestClient.put "#{ARGV[1]}/features/?authentication_code=#{File.read(".wally")}", features.to_json, {:content_type => :json, :accept => :json}
+ RestClient.put "#{ARGV[1]}/features/?authentication_code=#{File.read(".wally").strip}", features.to_json, {:content_type => :json, :accept => :json}
elsif ARGV[0] == "destroy"
require "restclient"
- RestClient.delete ARGV[1]
-end
+ RestClient.delete "#{ARGV[1]}?authentication_code=#{File.read(".wally").strip}"
+end
Please sign in to comment.
Something went wrong with that request. Please try again.