bmc-tools 0.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/bin-other/autobackup +70 -0
  3. data/bin-other/autobackup.inc +157 -0
  4. data/bin-other/bob/ExtractPagesFromPDF +0 -0
  5. data/bin-other/bob/backupsync +46 -0
  6. data/bin-other/bob/cachesync +58 -0
  7. data/bin-other/bob/deb +55 -0
  8. data/bin-other/bob/debmirror +2551 -0
  9. data/bin-other/bob/debmirror.marlin +2551 -0
  10. data/bin-other/bob/exif_rotate.sh +34 -0
  11. data/bin-other/bob/exif_rotate_dates.sh +35 -0
  12. data/bin-other/bob/git-big-objects +85 -0
  13. data/bin-other/bob/git-commit-details +22 -0
  14. data/bin-other/bob/git-commit-sizes +16 -0
  15. data/bin-other/bob/git-show-biggest.sh +33 -0
  16. data/bin-other/bob/git_remove_history.sh +24 -0
  17. data/bin-other/bob/git_staged_status.sh +29 -0
  18. data/bin-other/bob/identify_extra_raws +137 -0
  19. data/bin-other/bob/wallpaper_restore.sh +1 -0
  20. data/bin-other/bob/watch_olsr.sh +1 -0
  21. data/bin-other/bob/watch_rbpm_node_status +1 -0
  22. data/bin-other/bob/watermark_bmphoto_large.sh +32 -0
  23. data/bin-other/bob/watermark_bmphoto_small.sh +32 -0
  24. data/bin-other/bubbles/deb +42 -0
  25. data/bin-other/bubbles/firewall.sh +134 -0
  26. data/bin-other/bubbles/kernel-mirror.sh +15 -0
  27. data/bin-other/deb +42 -0
  28. data/bin-other/exif_dates.sh +35 -0
  29. data/bin-other/git-large-files +62 -0
  30. data/bin-other/git_add_upto.sh +54 -0
  31. data/bin-other/git_find_big.sh +33 -0
  32. data/bin-other/git_staged_status.sh +29 -0
  33. data/bin-other/image_resize +43 -0
  34. data/bin-other/kernel-mirror.sh +15 -0
  35. data/bin-other/marlin/deb +42 -0
  36. data/bin-other/marlin/firewall.sh +134 -0
  37. data/bin-other/mysql2svn.sh +36 -0
  38. data/bin-other/syno-cleanup.sh +31 -0
  39. data/bin/dockerize +35 -23
  40. data/bin/image_exif +30 -0
  41. data/bin/image_process +156 -0
  42. data/bin/image_process_wname +138 -0
  43. data/bin/tgv_to_pdf +206 -0
  44. data/bmc-tools.gemspec +1 -1
  45. data/lib/cli.rb +8 -0
  46. data/lib/constants.rb +1 -0
  47. data/lib/docker.rb +15 -0
  48. data/lib/git.rb +21 -0
  49. data/lib/runner.rb +19 -0
  50. metadata +52 -2
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |spec|
3
3
  # Project version
4
- spec.version = "0.1"
4
+ spec.version = "0.2.0"
5
5
 
6
6
  # Project description
7
7
  spec.name = "bmc-tools"
@@ -0,0 +1,8 @@
1
+ module Helpers
2
+ class CLI
3
+ class << self
4
+
5
+
6
+ end
7
+ end
8
+ end
@@ -0,0 +1 @@
1
+ DOCKER_REPO = "bmconseil/dummy"
@@ -0,0 +1,15 @@
1
+ module Helpers
2
+ class Docker < Runner
3
+ class << self
4
+
5
+ def cmd_build temp_archive, release_name
6
+ "docker build -f Dockerfile --build-arg CODE_ARCHIVE=\"#{temp_archive}\" . -t \"#{release_name}\""
7
+ end
8
+
9
+ def cmd_tag from, to
10
+ "docker tag \"#{from}\" \"#{to}\""
11
+ end
12
+
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,21 @@
1
+ module Helpers
2
+ class Git < Runner
3
+ class << self
4
+
5
+ def cmd_archive temp_archive, opt_tag
6
+ "git archive --format=tar -o \"#{temp_archive}\" --prefix=/ #{opt_tag}"
7
+ end
8
+
9
+ def fetch_tags
10
+ runcmd ['git', 'tag']
11
+ end
12
+
13
+ def list_tags tags
14
+ puts "Valid tags are:"
15
+ tags.each.map { |tag| puts "- #{tag}" }
16
+ end
17
+
18
+
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,19 @@
1
+ module Helpers
2
+ class Runner
3
+ class << self
4
+
5
+ def runcmd parts
6
+ output = IO.popen parts
7
+ return output_lines output
8
+ end
9
+
10
+ def runcmd_old command, title
11
+ puts "* #{title}"
12
+ puts command
13
+ system command
14
+ puts
15
+ end
16
+
17
+ end
18
+ end
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bmc-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.1'
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno MEDICI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-14 00:00:00.000000000 Z
11
+ date: 2016-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -56,13 +56,63 @@ description: ''
56
56
  email: opensource@bmconseil.com
57
57
  executables:
58
58
  - dockerize
59
+ - image_exif
60
+ - image_process
61
+ - image_process_wname
62
+ - tgv_to_pdf
59
63
  extensions: []
60
64
  extra_rdoc_files: []
61
65
  files:
62
66
  - README.md
63
67
  - Rakefile
68
+ - bin-other/autobackup
69
+ - bin-other/autobackup.inc
70
+ - bin-other/bob/ExtractPagesFromPDF
71
+ - bin-other/bob/backupsync
72
+ - bin-other/bob/cachesync
73
+ - bin-other/bob/deb
74
+ - bin-other/bob/debmirror
75
+ - bin-other/bob/debmirror.marlin
76
+ - bin-other/bob/exif_rotate.sh
77
+ - bin-other/bob/exif_rotate_dates.sh
78
+ - bin-other/bob/git-big-objects
79
+ - bin-other/bob/git-commit-details
80
+ - bin-other/bob/git-commit-sizes
81
+ - bin-other/bob/git-show-biggest.sh
82
+ - bin-other/bob/git_remove_history.sh
83
+ - bin-other/bob/git_staged_status.sh
84
+ - bin-other/bob/identify_extra_raws
85
+ - bin-other/bob/wallpaper_restore.sh
86
+ - bin-other/bob/watch_olsr.sh
87
+ - bin-other/bob/watch_rbpm_node_status
88
+ - bin-other/bob/watermark_bmphoto_large.sh
89
+ - bin-other/bob/watermark_bmphoto_small.sh
90
+ - bin-other/bubbles/deb
91
+ - bin-other/bubbles/firewall.sh
92
+ - bin-other/bubbles/kernel-mirror.sh
93
+ - bin-other/deb
94
+ - bin-other/exif_dates.sh
95
+ - bin-other/git-large-files
96
+ - bin-other/git_add_upto.sh
97
+ - bin-other/git_find_big.sh
98
+ - bin-other/git_staged_status.sh
99
+ - bin-other/image_resize
100
+ - bin-other/kernel-mirror.sh
101
+ - bin-other/marlin/deb
102
+ - bin-other/marlin/firewall.sh
103
+ - bin-other/mysql2svn.sh
104
+ - bin-other/syno-cleanup.sh
64
105
  - bin/dockerize
106
+ - bin/image_exif
107
+ - bin/image_process
108
+ - bin/image_process_wname
109
+ - bin/tgv_to_pdf
65
110
  - bmc-tools.gemspec
111
+ - lib/cli.rb
112
+ - lib/constants.rb
113
+ - lib/docker.rb
114
+ - lib/git.rb
115
+ - lib/runner.rb
66
116
  homepage: http://github.com/bmedici/bmc-tools
67
117
  licenses:
68
118
  - MIT