Skip to content

Commit 82c8432

Browse files
author
Ruslan Tolstov
committed
[Bugfix] Add ENV["STAGE"] to Import
1 parent debbaf6 commit 82c8432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/rswag_schema_export/schema_import.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
module RswagSchemaExport
22
class Import
3-
def run(stage = "develop") # rubocop:disable Metrics/AbcSize:
3+
def run
44
abort("Set up RswagSchemaExport.config.schemas") unless RswagSchemaExport.config.schemas
55

66
begin
7-
client = ::RswagSchemaExport::Client.new(stage)
7+
client = ::RswagSchemaExport::Client.new(ENV["STAGE"])
88
RswagSchemaExport.config.schemas.map do |schema|
99
schema_id = schema.gsub(/[^a-zA-Z0-9\-]/, "_")
1010

0 commit comments

Comments
 (0)