@@ -28,7 +28,7 @@ def working_copy_exists?
2828
2929 # Check if workspace is setup
3030 args = [ 'where' ]
31- args . push ( @resource . value ( :path ) + ' /...' )
31+ args . push ( " #{ @resource . value ( :path ) } /..." )
3232 hash = p4 ( args , raise : false )
3333
3434 ( hash [ 'code' ] != 'error' )
@@ -88,7 +88,7 @@ def revision=(desired)
8888
8989 def source
9090 args = [ 'where' ]
91- args . push ( @resource . value ( :path ) + ' /...' )
91+ args . push ( " #{ @resource . value ( :path ) } /..." )
9292 hash = p4 ( args , raise : false )
9393
9494 hash [ 'depotFile' ]
@@ -126,7 +126,7 @@ def client_name
126126 # default (generated) client name
127127 path = @resource . value ( :path )
128128 host = Facter . value ( 'hostname' )
129- default = ' puppet-' + Digest ::MD5 . hexdigest ( path + host )
129+ default = " puppet-#{ Digest ::MD5 . hexdigest ( path + host ) } "
130130
131131 # check config for client name
132132 set_client = nil
@@ -159,11 +159,11 @@ def create_client(client)
159159 if source
160160 parts = source . split ( %r{/} )
161161 if parts && parts . length >= 4
162- source = '//' + parts [ 2 ] + '/' + parts [ 3 ]
162+ source = "// #{ parts [ 2 ] } / #{ parts [ 3 ] } "
163163 streams = p4 ( [ 'streams' , source ] , raise : false )
164164 if streams [ 'code' ] == 'stat'
165165 hash [ 'Stream' ] = streams [ 'Stream' ]
166- notice ' Streams' + streams [ 'Stream' ] . inspect
166+ notice " Streams#{ streams [ 'Stream' ] . inspect } "
167167 end
168168 end
169169 end
@@ -235,7 +235,7 @@ def p4(args, options = {})
235235 Open3 . popen3 ( config , cmd_str ) do |i , o , e , t |
236236 # Send input stream if provided
237237 if opts [ :input ]
238- Puppet . debug "input:\n " + opts [ :input ]
238+ Puppet . debug "input:\n #{ opts [ :input ] } "
239239 i . write opts [ :input ]
240240 i . close
241241 end
0 commit comments