Sha256: 61a85196c1470e364f6e278319fd7e90dc41fef0f402d175ef5c53fce8d57dbe

Contents?: true

Size: 409 Bytes

Versions: 4

Compression:

Stored size: 409 Bytes

Contents

module Jets::Code::Copy
  class GitInline < Base
    def create_temp_zip
      # Git add and commit to current repo. Affects the working dir but faster.
      if git_info.params[:git_dirty]
        quiet_sh "git add ."
        gitconfig
        quiet_sh "git commit -m 'commit for deploy' > /dev/null || true"
      end
      quiet_sh "git archive -o #{build_root}/stage/code-temp.zip HEAD"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
jets-6.0.5 lib/jets/code/copy/git_inline.rb
jets-6.0.4 lib/jets/code/copy/git_inline.rb
jets-6.0.3 lib/jets/code/copy/git_inline.rb
jets-6.0.2 lib/jets/code/copy/git_inline.rb