gpack 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,154 @@
1
+ README=%{
2
+ =====
3
+ GitPack v2.0
4
+ =====
5
+
6
+ From https://github.com/GitPack/GitPackRuby
7
+
8
+ Ruby Implementation of git repository manager. Conceptually simular to a tool like bundle, gradel, ect. GitPack handles the distrubuting of Git repositories without being tied to a specific language; although it does use ruby to execute commands. GitPack specifically is intended to control multiple git repository dependancies on a project where it is required that multiple user's point to the same commit/branch/tag. GitPack simplifies the usage of Git and can be especially beneficial when working with teams where not every user knows how to manage a git repository. GitPack uses a single file "GpackRepos" to specifiy the URL and local destination of repositories that it should manage.
9
+
10
+ * Clones multiple repositories in parallel.
11
+ * Controls read-only permissions on cloned repositories.
12
+ * Pulls multiple repositoires in parallel.
13
+ * Easy clean of repositories that do not have a clean git status.
14
+ * Submodule compatible
15
+
16
+ Structure
17
+ -----
18
+ * ./gpack - The main exectuable. GitPack is self updating and downloads the latest ver. of master from this repository.
19
+ * ./GpackRepos - The main file that GitPack uses to store information about remote repositories URL, the local desitinations where the repositories should be cloned, and user configuration options like read-only, SSH keys, ect. This file is in YAML format
20
+ * ./.gpacklock - Used to store the repository read-only status.
21
+
22
+ Dependancies
23
+ -----
24
+ * Tested in Ruby 2.3
25
+
26
+ Setup
27
+ -----
28
+ Download the gpack bash script to a local directory and make the file executable:
29
+
30
+ .. code::
31
+
32
+ wget https://raw.githubusercontent.com/GitPack/GitPack/master/gpack
33
+ chmod u+x ./gpack
34
+
35
+ Add repos to GpackRepos file using gpack, an example is shown below:
36
+
37
+ .. code::
38
+
39
+ ./gpack add git@github.com:GitPack/GitPack.git ./GitPack
40
+
41
+ Basic Usage
42
+ -----
43
+
44
+ Installs all repos in GpackRepos file:
45
+
46
+ .. code::
47
+
48
+ ./gpack install
49
+
50
+ Update installed repos in GpackRepos file:
51
+
52
+ .. code::
53
+
54
+ ./gpack update
55
+
56
+
57
+ GpackRepos
58
+ ----------
59
+
60
+ .. code-block:: bash
61
+
62
+ test1:
63
+ url: git@github.com:GitPack/TestRepo1.git
64
+ localdir: ./repos/test1
65
+ branch: master
66
+ lock: true
67
+
68
+ test2:
69
+ url: git@github.com:GitPack/TestRepo2.git
70
+ localdir: ./repos/test2
71
+ branch: master
72
+ lock: false
73
+
74
+ test3:
75
+ url: git@github.com:GitPack/TestRepo3.git
76
+ localdir: ./repos/test3
77
+ branch: master
78
+ lock: false
79
+
80
+ test3_hash:
81
+ url: git@github.com:GitPack/TestRepo3.git
82
+ localdir: ./repos/test3_hash
83
+ branch: b41e58af7
84
+ lock: false
85
+
86
+ test1_tag:
87
+ url: git@github.com:GitPack/TestRepo1.git
88
+ localdir: ./repos/test1_tag
89
+ branch: v2.0
90
+ lock: false
91
+
92
+ # Options for Configuration
93
+ # config:
94
+ # lock: true # Option to disable read-only by default
95
+ # remote_key: http://some.valid.url # Use an external ssh key
96
+ # ssh_command: ssh -v # Custom SSH arguments passed to $GIT_SSH_COMMAND
97
+
98
+
99
+
100
+ Core Commands
101
+ -------------
102
+
103
+ **gpack cmd [-f] [-nogui] [-persist] [-s]**
104
+ * -f,--force: Force operation
105
+ * -s,--single: Single threaded, useful for debug
106
+ * -n,--nogui: Do not pop up xterm windows
107
+ * -p,--persist: Keep xterm windows open even if command is successful
108
+ * -i: Force install (applies only to update command)
109
+
110
+ **add [url] [directory] [branch]**
111
+ Adds a repo to the GpackRepos file given ssh URL and local directory
112
+ relative to current directory
113
+ **check**
114
+ Checks if all repos are clean and match GpackRepos
115
+ **status**
116
+ Runs through each repo and reports the result of git status
117
+ **help**
118
+ Displays this message
119
+ **install**
120
+ Clones repos in repo directory
121
+ -nogui doesn't open terminals when installing
122
+ **uninstall**
123
+ Removes all local repositories listed in the Repositories File
124
+ Add -f to force remove all repositories
125
+ **reinstall**
126
+ The same as running uninstall then reinstall
127
+ **list**
128
+ List all repos in GpackRepos file
129
+ **lock**
130
+ Makes repo read-only, removes from .gpacklock file
131
+ **unlock**
132
+ Allows writing to repo, appends to .gpacklock file
133
+ **update [-i] [-f]**
134
+ Updates the repositories -f will install if not already installed
135
+
136
+
137
+ Details
138
+ -----------
139
+ * Maintains a clean local repository directory by parsing GpackRepos for user-defined repositores that they wish to clone.
140
+ * By default, all cloned repositories have no write access.
141
+
142
+ Future Improvements
143
+ -----
144
+ * GitPack is not Git LFS compatible at the moment. Merge requests with this feature would be accepted.
145
+ * Add command is not implemented
146
+ * Allow GitPack commands to operate on a per-repository basis
147
+ * Lock/Unlock of individual repositores. (Python version has this)
148
+
149
+ Developers
150
+ -----
151
+ * Andrew Porter https://github.com/AndrewRPorter
152
+ * Aaron Cook https://github.com/cookacounty
153
+
154
+ }
@@ -0,0 +1,10 @@
1
+ require 'minitest/autorun'
2
+ require 'gpack'
3
+
4
+ class GpackTest < Minitest::Test
5
+ def test_install
6
+ Dir.chdir("./testdir")
7
+ gpack(["uninstall"])
8
+ gpack(["install"])
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gpack
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Cook
@@ -17,8 +17,20 @@ executables:
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - LICENSE
21
+ - README.rst
20
22
  - bin/gpack
21
23
  - lib/gpack.rb
24
+ - lib/gpack/config/headers.rb
25
+ - lib/gpack/core/GitCollection.rb
26
+ - lib/gpack/core/GitReference.rb
27
+ - lib/gpack/core/gpack.rb
28
+ - lib/gpack/core/gpack_readme.rb
29
+ - lib/gpack/core/parallel.rb
30
+ - lib/gpack/core/parse_repos.rb
31
+ - lib/gpack/core/ssh.rb
32
+ - lib/gpack_readme.rb
33
+ - test/test_gpack.rb
22
34
  homepage: https://github.com/GitPack/GitPackRuby
23
35
  licenses:
24
36
  - GPL-3.0