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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4448ccef7e7ddfd360671112b0f2309514d1fe41
4
- data.tar.gz: 78e891d82abb784a20ee5fab9df5bf9c15a1c61a
3
+ metadata.gz: 10492c930b389ec6be5287718b860987903dcf03
4
+ data.tar.gz: ac0bcf4fe1ff547c6b3bbfa3eafe712047e42890
5
5
  SHA512:
6
- metadata.gz: ad6c99e1bdebf6d38e6387325beb9644cf2e485bf2b6f1c3e4251f833c841f2bc46855e123c5116c34a7120b95f756438c87158dabbf6d320890f8f7deec74f4
7
- data.tar.gz: 9d063888952c5c0e057e560b37bd3185e3604a3fa8678ff0cc3d1057136888ec226cce3d0745bdddaf2e3ea06a6ba5b3b19ff4452545ae85ef3a9c74c0a750d7
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.1'
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
@@ -4,8 +4,6 @@ logfile_path: .robot_sweatshop/log
4
4
  job_path: .robot_sweatshop/jobs
5
5
  workspace_path: .robot_sweatshop/workspaces
6
6
  moneta_path: .robot_sweatshop/db
7
- # user: ci-bot
8
- # group: nogroup
9
7
  http_port: 8080
10
8
  http_bind: 0.0.0.0
11
9
  # queue_handler_port: 5556
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'robot_sweatshop'
3
- gem.version = '0.3.1'
3
+ gem.version = '0.3.2'
4
4
  gem.licenses = 'MIT'
5
5
  gem.authors = ['Justin Scott']
6
6
  gem.email = 'jvscott@gmail.com'
@@ -1,7 +1,7 @@
1
- $for_a_moment = 0.2
2
- $for_a_while = 0.5
3
- $for_io_calls = 1
4
- $for_everything = 2
1
+ $for_a_moment = 0.3
2
+ $for_a_while = 0.7
3
+ $for_io_calls = 2
4
+ $for_everything = 4
5
5
 
6
6
  Kintama.on_start do
7
7
  puts `#{__dir__}/../../bin/sweatshop start --testing`
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.1
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-04 00:00:00.000000000 Z
11
+ date: 2015-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra