Skip to content

Commit

Permalink
update command check rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
KazuCocoa committed Sep 15, 2018
1 parent e5e889b commit ee6756b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script/commands.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def initialize
# @return [String] The file path in which has saved `routes.js`.
#
def get_mjsonwp_routes(to_path = './mjsonwp_routes.js')
uri = URI 'https://raw.githubusercontent.com/appium/appium-base-driver/master/lib/mjsonwp/routes.js?raw=1'
uri = URI 'https://raw.githubusercontent.com/appium/appium-base-driver/master/lib/protocol/routes.js?raw=1'
result = Net::HTTP.get uri

File.delete to_path
File.delete to_path if File.exist? to_path
File.write to_path, result
to_path
end
Expand Down

0 comments on commit ee6756b

Please sign in to comment.