bmc-tools 0.1 → 0.2.0
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.
- checksums.yaml +4 -4
- data/bin-other/autobackup +70 -0
- data/bin-other/autobackup.inc +157 -0
- data/bin-other/bob/ExtractPagesFromPDF +0 -0
- data/bin-other/bob/backupsync +46 -0
- data/bin-other/bob/cachesync +58 -0
- data/bin-other/bob/deb +55 -0
- data/bin-other/bob/debmirror +2551 -0
- data/bin-other/bob/debmirror.marlin +2551 -0
- data/bin-other/bob/exif_rotate.sh +34 -0
- data/bin-other/bob/exif_rotate_dates.sh +35 -0
- data/bin-other/bob/git-big-objects +85 -0
- data/bin-other/bob/git-commit-details +22 -0
- data/bin-other/bob/git-commit-sizes +16 -0
- data/bin-other/bob/git-show-biggest.sh +33 -0
- data/bin-other/bob/git_remove_history.sh +24 -0
- data/bin-other/bob/git_staged_status.sh +29 -0
- data/bin-other/bob/identify_extra_raws +137 -0
- data/bin-other/bob/wallpaper_restore.sh +1 -0
- data/bin-other/bob/watch_olsr.sh +1 -0
- data/bin-other/bob/watch_rbpm_node_status +1 -0
- data/bin-other/bob/watermark_bmphoto_large.sh +32 -0
- data/bin-other/bob/watermark_bmphoto_small.sh +32 -0
- data/bin-other/bubbles/deb +42 -0
- data/bin-other/bubbles/firewall.sh +134 -0
- data/bin-other/bubbles/kernel-mirror.sh +15 -0
- data/bin-other/deb +42 -0
- data/bin-other/exif_dates.sh +35 -0
- data/bin-other/git-large-files +62 -0
- data/bin-other/git_add_upto.sh +54 -0
- data/bin-other/git_find_big.sh +33 -0
- data/bin-other/git_staged_status.sh +29 -0
- data/bin-other/image_resize +43 -0
- data/bin-other/kernel-mirror.sh +15 -0
- data/bin-other/marlin/deb +42 -0
- data/bin-other/marlin/firewall.sh +134 -0
- data/bin-other/mysql2svn.sh +36 -0
- data/bin-other/syno-cleanup.sh +31 -0
- data/bin/dockerize +35 -23
- data/bin/image_exif +30 -0
- data/bin/image_process +156 -0
- data/bin/image_process_wname +138 -0
- data/bin/tgv_to_pdf +206 -0
- data/bmc-tools.gemspec +1 -1
- data/lib/cli.rb +8 -0
- data/lib/constants.rb +1 -0
- data/lib/docker.rb +15 -0
- data/lib/git.rb +21 -0
- data/lib/runner.rb +19 -0
- metadata +52 -2
data/bmc-tools.gemspec
CHANGED
data/lib/cli.rb
ADDED
data/lib/constants.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
DOCKER_REPO = "bmconseil/dummy"
|
data/lib/docker.rb
ADDED
@@ -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
|
data/lib/git.rb
ADDED
@@ -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
|
data/lib/runner.rb
ADDED
@@ -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:
|
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-
|
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
|