Module: Kamal::Commands::Builder::Clone
- Extended by:
- ActiveSupport::Concern
- Included in:
- Kamal::Commands::Builder
- Defined in:
- lib/kamal/commands/builder/clone.rb
Instance Method Summary collapse
Instance Method Details
#clone ⇒ Object
8 9 10 |
# File 'lib/kamal/commands/builder/clone.rb', line 8 def clone git :clone, Kamal::Git.root, "--recurse-submodules", path: clone_directory end |
#clone_reset_steps ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/kamal/commands/builder/clone.rb', line 12 def clone_reset_steps [ git(:remote, "set-url", :origin, Kamal::Git.root, path: build_directory), git(:fetch, :origin, path: build_directory), git(:reset, "--hard", Kamal::Git.revision, path: build_directory), git(:clean, "-fdx", path: build_directory), git(:submodule, :update, "--init", path: build_directory) ] end |
#clone_revision ⇒ Object
26 27 28 |
# File 'lib/kamal/commands/builder/clone.rb', line 26 def clone_revision git :"rev-parse", :HEAD, path: build_directory end |
#clone_status ⇒ Object
22 23 24 |
# File 'lib/kamal/commands/builder/clone.rb', line 22 def clone_status git :status, "--porcelain", path: build_directory end |