robot_sweatshop 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sweatshop +1 -1
- data/config.defaults.yaml +0 -2
- data/lib/robot_sweatshop/create-config-directories.rb +0 -11
- data/robot_sweatshop.eye +0 -2
- data/robot_sweatshop.gemspec +1 -1
- data/test/shared/process_spawning.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10492c930b389ec6be5287718b860987903dcf03
|
4
|
+
data.tar.gz: ac0bcf4fe1ff547c6b3bbfa3eafe712047e42890
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1de7c2c98fb11e14b52b41f5365643e4e1c2d6080d5ef856351baa48349dab708a3eba13fb2541e10d32c1afc8645aa93112d0a228f8f5a0a01be722644795f
|
7
|
+
data.tar.gz: f9f02d12b25d5a96611935590b5b781d2773f61a42a06c055d5f907ca8a1298e4c3ab960e56e023fc6bed4f2155104103fde9b48454338edb2f44189283dd3fc
|
data/bin/sweatshop
CHANGED
@@ -8,7 +8,7 @@ require 'robot_sweatshop/config'
|
|
8
8
|
require 'robot_sweatshop/create-config-directories'
|
9
9
|
|
10
10
|
program :name, 'Robot Sweatshop'
|
11
|
-
program :version, '0.3.
|
11
|
+
program :version, '0.3.2'
|
12
12
|
program :description, 'A lightweight, unopinionated CI server'
|
13
13
|
program :help, 'Author', 'Justin Scott <jvscott@gmail.com>'
|
14
14
|
|
data/config.defaults.yaml
CHANGED
@@ -1,16 +1,6 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
require_relative 'config'
|
3
3
|
|
4
|
-
def set_dir_permissions(for_path:)
|
5
|
-
user = configatron.user
|
6
|
-
group = configatron.has_key?(:group) ? configatron.group : 'nogroup'
|
7
|
-
begin
|
8
|
-
FileUtils.chown_R user, group, for_path unless user.nil?
|
9
|
-
rescue ArgumentError
|
10
|
-
puts "Could not set permissions for '#{for_path}'"
|
11
|
-
end
|
12
|
-
end
|
13
|
-
|
14
4
|
def create_path(path)
|
15
5
|
begin
|
16
6
|
FileUtils.mkdir_p path
|
@@ -24,6 +14,5 @@ config.each do |key, value|
|
|
24
14
|
if key.to_s.match /_path/
|
25
15
|
path = File.expand_path value
|
26
16
|
create_path path
|
27
|
-
set_dir_permissions for_path: path if configatron.has_key? :user
|
28
17
|
end
|
29
18
|
end
|
data/robot_sweatshop.eye
CHANGED
@@ -12,8 +12,6 @@ Eye.application :robot_sweatshop do
|
|
12
12
|
trigger :flapping, times: 10, within: 1.minute, retry_in: 10.minutes
|
13
13
|
check :cpu, every: 10.seconds, below: 100, times: 3
|
14
14
|
working_dir CONFIG[:working_path]
|
15
|
-
uid "#{CONFIG[:user]}" if CONFIG[:user]
|
16
|
-
gid "#{CONFIG[:group]}" if CONFIG[:group]
|
17
15
|
|
18
16
|
group 'input' do
|
19
17
|
process :http do
|
data/robot_sweatshop.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: robot_sweatshop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Scott
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-05-
|
11
|
+
date: 2015-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|