Sha256: 04bbaab5dfc95f3fba3b32e21cbd0150bbfd5a378c0d4f6048ded7dd67b6152b
Contents?: true
Size: 879 Bytes
Versions: 10
Compression:
Stored size: 879 Bytes
Contents
module Kamal::Commands::Builder::Clone def clone git :clone, escaped_root, "--recurse-submodules", path: config.builder.clone_directory.shellescape end def clone_reset_steps [ git(:remote, "set-url", :origin, escaped_root, path: escaped_build_directory), git(:fetch, :origin, path: escaped_build_directory), git(:reset, "--hard", Kamal::Git.revision, path: escaped_build_directory), git(:clean, "-fdx", path: escaped_build_directory), git(:submodule, :update, "--init", path: escaped_build_directory) ] end def clone_status git :status, "--porcelain", path: escaped_build_directory end def clone_revision git :"rev-parse", :HEAD, path: escaped_build_directory end def escaped_root Kamal::Git.root.shellescape end def escaped_build_directory config.builder.build_directory.shellescape end end
Version data entries
10 entries across 10 versions & 2 rubygems