@@ -180,14 +180,14 @@ class BundleBuildFileGenerator
180180 def initialize ( workspace_name :,
181181 repo_name :,
182182 build_file : 'BUILD.bazel' ,
183- gemfile : 'Gemfile' ,
183+ gemfile_lock : 'Gemfile.lock ' ,
184184 includes : nil ,
185185 excludes : nil ,
186186 additional_require_paths : nil )
187187 @workspace_name = workspace_name
188188 @repo_name = repo_name
189189 @build_file = build_file
190- @gemfile_lock = " #{ gemfile } .lock"
190+ @gemfile_lock = gemfile_lock
191191 @includes = includes
192192 @excludes = excludes
193193 # This attribute returns 0 as the third minor version number, which happens to be
@@ -320,14 +320,14 @@ def to_flat_string(array)
320320# ruby ./create_bundle_build_file.rb "BUILD.bazel" "Gemfile.lock" "repo_name" "{}" "{}" "wsp_name"
321321if $0 == __FILE__
322322 if ARGV . length != 6
323- warn ( "USAGE: #{ $0} BUILD.bazel Gemfile repo-name {includes-json} {excludes-json} workspace-name" . orange )
323+ warn ( "USAGE: #{ $0} BUILD.bazel Gemfile.lock repo-name {includes-json} {excludes-json} workspace-name" . orange )
324324 exit ( 1 )
325325 end
326326
327- build_file , gemfile , repo_name , includes , excludes , workspace_name , * = *ARGV
327+ build_file , gemfile_lock , repo_name , includes , excludes , workspace_name , * = *ARGV
328328
329329 BundleBuildFileGenerator . new ( build_file : build_file ,
330- gemfile : gemfile ,
330+ gemfile_lock : gemfile_lock ,
331331 repo_name : repo_name ,
332332 includes : JSON . parse ( includes ) ,
333333 excludes : JSON . parse ( excludes ) ,
0 commit comments