robit 1.0.4 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +31 -14
- data/VERSION +1 -1
- data/tasks/package/Dockerfile +10 -0
- data/tasks/package/_package.sh +32 -0
- data/tasks/package/artifacts/robit_1.0.4_amd64.deb +0 -0
- data/tasks/package/post-install.sh +19 -0
- data/tasks/package/robit.sh +7 -0
- data/tasks/package/run.sh +21 -0
- data/tasks/test/Dockerfile +9 -0
- data/tasks/test/run.sh +10 -0
- metadata +11 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0018e1ac3e0a77279b37a8d0ada8e4402d0d745
|
4
|
+
data.tar.gz: 443cb2c0c9786ee2482b699a3ae64930d33b2ec5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f83316c89feae1f27acb9b3e231fff73f9422fe4da80b2f8f5a22d4aeb88ac931a3374d4b1fc1d077a135328b52f9b80749d5af0a76e0909ff847182f2f9993b
|
7
|
+
data.tar.gz: 1ec3f23c331b5a31c590f6b2295a589f072c688ffb96db855fd9864e0dbc87dd250275bc290322dab729b1f404095739a59e2c02b70401393ae787e1994e3e1d
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.4
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
robit (1.0.
|
4
|
+
robit (1.0.5)
|
5
5
|
awesome_print (~> 1)
|
6
6
|
calc (~> 1)
|
7
7
|
daybreak (~> 0)
|
@@ -15,45 +15,61 @@ PATH
|
|
15
15
|
GEM
|
16
16
|
remote: https://rubygems.org/
|
17
17
|
specs:
|
18
|
+
arr-pm (0.0.10)
|
19
|
+
cabin (> 0)
|
18
20
|
awesome_print (1.6.1)
|
21
|
+
backports (3.6.8)
|
22
|
+
cabin (0.8.1)
|
19
23
|
calc (1.0.0)
|
24
|
+
childprocess (0.5.9)
|
25
|
+
ffi (~> 1.0, >= 1.0.11)
|
26
|
+
clamp (0.6.5)
|
20
27
|
coderay (1.1.0)
|
21
28
|
daybreak (0.3.0)
|
29
|
+
ffi (1.9.10)
|
30
|
+
fpm (1.4.0)
|
31
|
+
arr-pm (~> 0.0.10)
|
32
|
+
backports (>= 2.6.2)
|
33
|
+
cabin (>= 0.6.0)
|
34
|
+
childprocess
|
35
|
+
clamp (~> 0.6)
|
36
|
+
ffi
|
37
|
+
json (>= 1.7.7)
|
22
38
|
hipchat (1.5.2)
|
23
39
|
httparty
|
24
40
|
mimemagic
|
25
|
-
httparty (0.13.
|
41
|
+
httparty (0.13.7)
|
26
42
|
json (~> 1.8)
|
27
43
|
multi_xml (>= 0.5.2)
|
28
44
|
json (1.8.3)
|
29
45
|
method_source (0.8.2)
|
30
|
-
mimemagic (0.3.
|
31
|
-
|
32
|
-
minitest (5.8.
|
46
|
+
mimemagic (0.3.1)
|
47
|
+
mini_portile2 (2.0.0)
|
48
|
+
minitest (5.8.4)
|
33
49
|
multi_xml (0.5.5)
|
34
|
-
nokogiri (1.6.
|
35
|
-
|
36
|
-
pry (0.10.
|
50
|
+
nokogiri (1.6.7.2)
|
51
|
+
mini_portile2 (~> 2.0.0.rc2)
|
52
|
+
pry (0.10.3)
|
37
53
|
coderay (~> 1.1.0)
|
38
54
|
method_source (~> 0.8.1)
|
39
55
|
slop (~> 3.4)
|
40
56
|
rack (1.6.4)
|
41
57
|
rack-protection (1.5.3)
|
42
58
|
rack
|
43
|
-
rake (10.
|
59
|
+
rake (10.5.0)
|
44
60
|
retryable-rb (1.1.0)
|
45
61
|
rubygems-tasks (0.2.4)
|
46
|
-
rubypress (1.
|
62
|
+
rubypress (1.2.0)
|
47
63
|
retryable-rb
|
48
64
|
sclemmer-robut (0.6.3)
|
49
65
|
sinatra (~> 1.3)
|
50
66
|
xmpp4r (~> 0.5.6)
|
51
|
-
sinatra (1.4.
|
52
|
-
rack (~> 1.
|
67
|
+
sinatra (1.4.7)
|
68
|
+
rack (~> 1.5)
|
53
69
|
rack-protection (~> 1.4)
|
54
70
|
tilt (>= 1.3, < 3)
|
55
71
|
slop (3.6.0)
|
56
|
-
tilt (2.0.
|
72
|
+
tilt (2.0.2)
|
57
73
|
trollop (2.1.2)
|
58
74
|
twss-classifier (0.0.1)
|
59
75
|
version (1.0.0)
|
@@ -64,6 +80,7 @@ PLATFORMS
|
|
64
80
|
ruby
|
65
81
|
|
66
82
|
DEPENDENCIES
|
83
|
+
fpm
|
67
84
|
minitest
|
68
85
|
pry
|
69
86
|
rake
|
@@ -73,4 +90,4 @@ DEPENDENCIES
|
|
73
90
|
yard
|
74
91
|
|
75
92
|
BUNDLED WITH
|
76
|
-
1.
|
93
|
+
1.11.2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.5
|
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -x
|
3
|
+
set -e
|
4
|
+
|
5
|
+
ruby=ruby2.2
|
6
|
+
version=$(cat VERSION)
|
7
|
+
|
8
|
+
rm -rf etc
|
9
|
+
rm -rf tmp
|
10
|
+
rm -rf .bundle
|
11
|
+
rm -rf .vagrant
|
12
|
+
|
13
|
+
bundle update
|
14
|
+
bundle package --all --all-platforms
|
15
|
+
|
16
|
+
bundle exec fpm -n robit \
|
17
|
+
--after-install tasks/package/post-install.sh \
|
18
|
+
--after-upgrade tasks/package/post-install.sh \
|
19
|
+
-d "$ruby" -d "$ruby-dev" \
|
20
|
+
-d libxml2 -d libxml2-dev -d libxslt1-dev -d zlib1g-dev \
|
21
|
+
-s dir -t deb -v "$version" \
|
22
|
+
tasks/package/robit.sh=/usr/local/bin/robit \
|
23
|
+
./=/opt/robit
|
24
|
+
|
25
|
+
# gem uninstall -aIx
|
26
|
+
# dpkg -i *.deb
|
27
|
+
# ls -la /opt/robit
|
28
|
+
# robit art
|
29
|
+
# robit version
|
30
|
+
|
31
|
+
mkdir -p /artifacts
|
32
|
+
mv *.deb /artifacts
|
Binary file
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
project=robit
|
5
|
+
|
6
|
+
if ! hash bundle ; then
|
7
|
+
echo 'Could not run `bundle`, fixing that for you...'
|
8
|
+
gem install bundler || gem2.2 install bundler
|
9
|
+
fi
|
10
|
+
|
11
|
+
cd /opt/$project
|
12
|
+
bundle install --without development:test:spec --local --deployment
|
13
|
+
|
14
|
+
useradd --user-group --system -M --shell /bin/false $project || true
|
15
|
+
|
16
|
+
for d in /opt/$project /etc/$project /var/log/$project /var/data/$project ; do
|
17
|
+
mkdir -p $d
|
18
|
+
chown -R $project:$project $d
|
19
|
+
done
|
@@ -0,0 +1,21 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
set -x
|
3
|
+
set -e
|
4
|
+
|
5
|
+
project=$(basename `pwd`)
|
6
|
+
artifacts="${1:-tasks/package/artifacts}"
|
7
|
+
dockerfile="${2:-tasks/package/Dockerfile}"
|
8
|
+
task_name="${3:-$project-package-$(date +%s)}"
|
9
|
+
|
10
|
+
cleanup() {
|
11
|
+
docker stop "$task_name"
|
12
|
+
docker rm "$task_name"
|
13
|
+
}
|
14
|
+
|
15
|
+
trap cleanup EXIT
|
16
|
+
|
17
|
+
rm -rf "$artifacts"
|
18
|
+
docker pull sczizzo/trusty-tool:latest
|
19
|
+
docker build -t "$task_name" -f "$dockerfile" .
|
20
|
+
docker run --name "$task_name" -dt "$task_name"
|
21
|
+
docker cp "$task_name":/artifacts "$artifacts"
|
data/tasks/test/run.sh
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sean Clemmer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twss-classifier
|
@@ -145,6 +145,7 @@ extra_rdoc_files: []
|
|
145
145
|
files:
|
146
146
|
- ".gitignore"
|
147
147
|
- ".robit.nick.yml"
|
148
|
+
- ".ruby-version"
|
148
149
|
- Gemfile
|
149
150
|
- Gemfile.lock
|
150
151
|
- Rakefile
|
@@ -156,6 +157,14 @@ files:
|
|
156
157
|
- lib/robit/plugins/alias_nick.rb
|
157
158
|
- lib/robit/plugins/status.rb
|
158
159
|
- robit.gemspec
|
160
|
+
- tasks/package/Dockerfile
|
161
|
+
- tasks/package/_package.sh
|
162
|
+
- tasks/package/artifacts/robit_1.0.4_amd64.deb
|
163
|
+
- tasks/package/post-install.sh
|
164
|
+
- tasks/package/robit.sh
|
165
|
+
- tasks/package/run.sh
|
166
|
+
- tasks/test/Dockerfile
|
167
|
+
- tasks/test/run.sh
|
159
168
|
homepage:
|
160
169
|
licenses: []
|
161
170
|
metadata: {}
|