Skip to content

Commit

Permalink
Merge pull request #33 from hostari/update-extract-hash-method
Browse files Browse the repository at this point in the history
Add game name
  • Loading branch information
paula4230 authored Nov 24, 2022
2 parents 8e2b8d1 + 53f4268 commit 85f6a5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fleet_app/extract_hash.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ module FleetApp
#
# `environment` is an optional string that specifies which fleet app to send the request to.

def self.extract_hash(host : String, command : String = "", environment : String = "production", username : String = "")
def self.extract_hash(host : String, game_name : String, command : String = "", environment : String = "production", username : String = "")
FleetApp::ClientWrapper.new(environment).post(
game_name: game_name,
path: "/api/v1/mod_library/brooce_command?queue_name=#{host}",
body: {command: command}.to_json
)
end

def self.extract_hash_with_auth(host : String, basic_auth : String, command : String = "", environment : String = "production", username : String = "")
def self.extract_hash_with_auth(host : String, game_name : String, basic_auth : String, command : String = "", environment : String = "production", username : String = "")
FleetApp::ClientWrapper.new(environment).post_with_auth(
game_name: game_name,
path: "/api/v1/mod_library/brooce_command?queue_name=#{host}",
Expand Down

0 comments on commit 85f6a5a

Please sign in to comment.