@@ -84,8 +84,6 @@ impl BundlerRuntime {
8484 ) -> std:: io:: Result < bool > {
8585 debug ! ( "Checking bundle synchronization status" ) ;
8686
87- self . configure_local_path ( butler_runtime) ?;
88-
8987 let output = Command :: new ( "bundle" )
9088 . arg ( "check" )
9189 . current_dir ( & self . root )
@@ -120,47 +118,6 @@ impl BundlerRuntime {
120118 }
121119 }
122120
123- /// Configure bundler to use local vendor directory
124- pub fn configure_local_path (
125- & self ,
126- butler_runtime : & crate :: butler:: ButlerRuntime ,
127- ) -> std:: io:: Result < ( ) > {
128- debug ! (
129- "Configuring bundle path to vendor directory: {}" ,
130- self . vendor_dir( ) . display( )
131- ) ;
132-
133- let status = Command :: new ( "bundle" )
134- . args ( [ "config" , "set" , "path" , "--local" ] )
135- . arg ( self . vendor_dir ( ) . to_string_lossy ( ) . as_ref ( ) )
136- . current_dir ( & self . root )
137- . status_with_context ( butler_runtime) ;
138-
139- match status {
140- Ok ( status) => {
141- if status. success ( ) {
142- debug ! ( "Successfully configured bundle path" ) ;
143- Ok ( ( ) )
144- } else {
145- Err ( std:: io:: Error :: other ( format ! (
146- "Failed to configure bundle path (exit code: {})" ,
147- status. code( ) . unwrap_or( -1 )
148- ) ) )
149- }
150- }
151- Err ( e) => {
152- if e. kind ( ) == std:: io:: ErrorKind :: NotFound {
153- Err ( std:: io:: Error :: new (
154- std:: io:: ErrorKind :: NotFound ,
155- "Bundler executable not found. Please install bundler with: gem install bundler" ,
156- ) )
157- } else {
158- Err ( e)
159- }
160- }
161- }
162- }
163-
164121 pub fn install_dependencies < F > (
165122 & self ,
166123 butler_runtime : & crate :: butler:: ButlerRuntime ,
0 commit comments