src/bosh_aws_cpi/lib/cloud/aws/stemcell_creator.rb
# checks if the stemcell-copy script can be found in
# the current PATH
checks if the stemcell-copy script can be found in
the current PATH
checks if the stemcell - copy script can be found in the current PATH
def find_in_path(command, path=ENV['PATH'])
      path.split(':').each do |dir|
        stemcell_copy = File.join(dir, command)
        return stemcell_copy if File.exist?(stemcell_copy)
      end
      nil
    end
def find_in_path ( command , path = ENV [ 'PATH' ] ) path . split ( ':' ) . each do | dir | stemcell_copy = File . join ( dir , command ) return stemcell_copy if File . exist? ( stemcell_copy ) end nil end
checks if the stemcell-copy script can be found in
the current PATH
checks if the stemcell - copy script can be found in the current PATH
command
<not_specific>
path
<not_specific>