monos 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ee4368f5e1359184cd8592946f23e9140c72d28b
4
- data.tar.gz: c6bcc16a6c88e0ffe2266fee1bce4b5a12772874
3
+ metadata.gz: 17e75b31f208961c34bd615af15547d1ebe2f0ba
4
+ data.tar.gz: 150a65ae3b0296acd3659732193377f4552ad1f9
5
5
  SHA512:
6
- metadata.gz: 0675326b562361aef8d40f39db0a20b1d20767b44d1bdea716170e5dd006af94375e89c5e05d2c8681c8fff0958f99de9a08a7bc09c55f1d1fe1b1ad997cb037
7
- data.tar.gz: d3c5e25625174b05bc9a098e64f7614eea15fe15699a9bbfafe98bcb01d2b1dacfd1022801e344202fe9c7b5470561e6b970ae74df3f9b07ea11dbe8f3c1ed77
6
+ metadata.gz: 17b55bd1201b91de073dd1e06fc35834231f0a0092fae88c9a6fbcf9f321127e77fb459786e5ba517508fbe66d8ee04f0d4a14ff6c9099be21fdc1124a16cbbc
7
+ data.tar.gz: ac18e206c095d17a2586a7c7d6da30017010fa9aba2ff73be58b265be548bbb5712676ff482560d45d9a3a261b450e1cd86f3f15ae2a337dbb11836c8850819f
@@ -6,6 +6,7 @@ bin/mo
6
6
  bin/mono
7
7
  lib/mono.rb
8
8
  lib/mono/base.rb
9
+ lib/mono/commands/backup.rb
9
10
  lib/mono/commands/env.rb
10
11
  lib/mono/commands/fetch.rb
11
12
  lib/mono/commands/run.rb
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # monos - monorepo / mono source tree tools and (startup) scripts
2
2
 
3
3
 
4
- * home :: [github.com/rubycoco/sport.db](https://github.com/rubycoco/monos)
5
- * bugs :: [github.com/rubycoco/sport.db/issues](https://github.com/rubycoco/monos/issues)
4
+ * home :: [github.com/rubycoco/monos](https://github.com/rubycoco/monos)
5
+ * bugs :: [github.com/rubycoco/monos/issues](https://github.com/rubycoco/monos/issues)
6
6
  * gem :: [rubygems.org/gems/monos](https://rubygems.org/gems/monos)
7
7
  * rdoc :: [rubydoc.info/gems/monos](http://rubydoc.info/gems/monos)
8
8
  * forum :: [opensport](http://groups.google.com/group/opensport)
@@ -52,7 +52,7 @@ openfootball:
52
52
 
53
53
  ### Commands
54
54
 
55
- `status` • `fetch` • `sync` • `run` •`env`
55
+ `status` • `fetch` • `sync` • `run` • `env` • `backup`
56
56
 
57
57
  ### `status` Command
58
58
 
@@ -141,6 +141,20 @@ Note: `exec` is an alias that you can use for `run`.
141
141
  Use the `env` command to check your `mono` environment setup.
142
142
 
143
143
 
144
+
145
+
146
+ ### `backup` Command
147
+
148
+ Use the `backup` command to backup all repos using
149
+ the [`gitti-backup` machinery »](https://github.com/rubycoco/gitti/tree/master/gitti-backup)
150
+
151
+ In a nutshell backup will backup all repos by using
152
+ 1. `git clone --mirror` or
153
+ 2. `git remote update` (if the local backup already exists)
154
+ and store all bare repos (without workspace) in the `~/backup` directory.
155
+
156
+
157
+
144
158
  That's all for now.
145
159
 
146
160
 
data/Rakefile CHANGED
@@ -21,7 +21,7 @@ Hoe.spec 'monos' do
21
21
 
22
22
  self.extra_deps = [
23
23
  ['gitti', '>= 0.4.0' ],
24
- ['gitti-backup', '>= 0.3.0' ],
24
+ ['gitti-backup', '>= 0.4.1' ],
25
25
  ]
26
26
 
27
27
  self.spec_extras = {
@@ -25,6 +25,7 @@ require 'mono/commands/status'
25
25
  require 'mono/commands/fetch'
26
26
  require 'mono/commands/sync'
27
27
  require 'mono/commands/env'
28
+ require 'mono/commands/backup'
28
29
  require 'mono/commands/run'
29
30
  require 'mono/tool'
30
31
 
@@ -0,0 +1,15 @@
1
+ module Mono
2
+
3
+ ## pass along hash of repos (e.g. monorepo.yml or repos.yml )
4
+ def self.backup
5
+ repos = Mono.monofile
6
+
7
+ backup = GitBackup.new
8
+
9
+ ## step 2: pass in all repos to backup by using
10
+ ## 1) git clone --mirror or
11
+ ## 2) git remote update (if local backup already exists)
12
+ backup.backup( repos )
13
+ end # method backup
14
+
15
+ end # module Mono
@@ -26,6 +26,8 @@ class Tool
26
26
  Mono.fetch
27
27
  when 'env', 'e'
28
28
  Mono.env
29
+ when 'backup', 'back', 'b'
30
+ Mono.backup
29
31
  when 'run', 'r', 'exec'
30
32
  Mono.run( args )
31
33
  else
@@ -6,8 +6,8 @@ module MonoCore ## todo/check: rename to MonoMeta, MonoModule or such - why? w
6
6
  ## note: move root to its own namespace to avoid
7
7
  ## conflict with Mono.root!!!!
8
8
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
9
- MINOR = 3
10
- PATCH = 1
9
+ MINOR = 4
10
+ PATCH = 0
11
11
  VERSION = [MAJOR,MINOR,PATCH].join('.')
12
12
 
13
13
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gerald Bauer
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.0
33
+ version: 0.4.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.0
40
+ version: 0.4.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rdoc
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -85,6 +85,7 @@ files:
85
85
  - bin/mono
86
86
  - lib/mono.rb
87
87
  - lib/mono/base.rb
88
+ - lib/mono/commands/backup.rb
88
89
  - lib/mono/commands/env.rb
89
90
  - lib/mono/commands/fetch.rb
90
91
  - lib/mono/commands/run.rb