hirefireapp 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -2
- data/hirefireapp.gemspec +6 -6
- data/lib/hirefireapp/middleware.rb +18 -1
- metadata +12 -15
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7d11f6164835eb4500ec5f5fcbdf92affc2739b4
|
4
|
+
data.tar.gz: 7f2b765983c231a9a96c7f0886ac76d57e150aed
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 25bc8b7acd4f269ad76b0b8462ab5caebe88241a6032ca45cb84aa8f2c7e843611158c90fa19972c96f175a5e6f86a89b671f89435a70958d8180cccfa946203
|
7
|
+
data.tar.gz: b532caf37dca5e5f5d7298a9aa4f45a8d283d2de4e6d0609ee6a07ba2afc26067b87a60f5ba25251e20b16e6cdbbcaa0ed29f1ba29b35d19b33206b06d2e706a
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# HireFire - The Heroku
|
1
|
+
# HireFire - The Heroku Dyno Manager
|
2
2
|
|
3
3
|
HireFire is a hosted service that scales your Heroku web and worker dynos when necessary.
|
4
4
|
This allows you to save a lot of money by allowing HireFire to shut down idle workers, and add scalability to both your web as well as your worker dynos.
|
5
5
|
|
6
|
-
Visit the [official website](http://
|
6
|
+
Visit the [official website](http://hirefire.io/) for more information!
|
data/hirefireapp.gemspec
CHANGED
@@ -4,17 +4,17 @@ Gem::Specification.new do |gem|
|
|
4
4
|
|
5
5
|
# General configuration / information
|
6
6
|
gem.name = 'hirefireapp'
|
7
|
-
gem.version = '0.0
|
7
|
+
gem.version = '0.1.0'
|
8
8
|
gem.platform = Gem::Platform::RUBY
|
9
9
|
gem.authors = 'Michael van Rooijen'
|
10
|
-
gem.email = '
|
11
|
-
gem.homepage = 'http://
|
12
|
-
gem.summary = %|
|
13
|
-
gem.description = %|
|
10
|
+
gem.email = 'michael@hirefire.io'
|
11
|
+
gem.homepage = 'http://hirefire.io/'
|
12
|
+
gem.summary = %|HireFire.io - The Heroku Dyno Manager - Autoscaling your web and worker dynos!|
|
13
|
+
gem.description = %|HireFire.io - The Heroku Dyno Manager - Autoscaling your web and worker dynos saving you time and money!|
|
14
14
|
|
15
15
|
# Files and folder that need to be compiled in to the Ruby Gem
|
16
16
|
gem.files = %x[git ls-files].split("\n")
|
17
17
|
gem.executables = ['hirefireapp']
|
18
18
|
gem.require_path = 'lib'
|
19
|
-
|
20
19
|
end
|
20
|
+
|
@@ -65,6 +65,8 @@ module HireFireApp
|
|
65
65
|
count_delayed_job
|
66
66
|
elsif defined?(Resque)
|
67
67
|
count_resque
|
68
|
+
elsif defined?(QC::Worker)
|
69
|
+
count_queue_classic
|
68
70
|
end
|
69
71
|
rescue => error
|
70
72
|
puts error
|
@@ -112,6 +114,16 @@ module HireFireApp
|
|
112
114
|
end
|
113
115
|
end
|
114
116
|
|
117
|
+
##
|
118
|
+
# Returns the amount of jobs in the queue + the ones that are being processed
|
119
|
+
#
|
120
|
+
# @returns [Fixnum] queue_classic_job_count
|
121
|
+
# the number of jobs pending + the amount of workers currently working
|
122
|
+
#
|
123
|
+
def count_queue_classic
|
124
|
+
QC::Queries.count
|
125
|
+
end
|
126
|
+
|
115
127
|
##
|
116
128
|
# Returns the amount of jobs in the queue + the ones that are being processed
|
117
129
|
#
|
@@ -119,7 +131,8 @@ module HireFireApp
|
|
119
131
|
# the number of jobs pending + the amount of workers currently working
|
120
132
|
#
|
121
133
|
def count_resque
|
122
|
-
|
134
|
+
info = Resque.info
|
135
|
+
info[:pending].to_i + info[:working].to_i
|
123
136
|
end
|
124
137
|
|
125
138
|
##
|
@@ -141,6 +154,8 @@ module HireFireApp
|
|
141
154
|
else
|
142
155
|
"Not Found"
|
143
156
|
end
|
157
|
+
elsif defined?(QC::Worker)
|
158
|
+
"Active Record"
|
144
159
|
else
|
145
160
|
"Not Found"
|
146
161
|
end
|
@@ -157,6 +172,8 @@ module HireFireApp
|
|
157
172
|
"Delayed Job"
|
158
173
|
elsif defined?(Resque)
|
159
174
|
"Resque"
|
175
|
+
elsif defined?(QC::Worker)
|
176
|
+
"Queue Classic"
|
160
177
|
else
|
161
178
|
"Not Found"
|
162
179
|
end
|
metadata
CHANGED
@@ -1,19 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hirefireapp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael van Rooijen
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-03-21 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description:
|
15
|
-
|
16
|
-
email:
|
13
|
+
description: HireFire.io - The Heroku Dyno Manager - Autoscaling your web and worker
|
14
|
+
dynos saving you time and money!
|
15
|
+
email: michael@hirefire.io
|
17
16
|
executables:
|
18
17
|
- hirefireapp
|
19
18
|
extensions: []
|
@@ -27,30 +26,28 @@ files:
|
|
27
26
|
- lib/hirefireapp/cli.rb
|
28
27
|
- lib/hirefireapp/middleware.rb
|
29
28
|
- lib/hirefireapp/railtie.rb
|
30
|
-
homepage: http://
|
29
|
+
homepage: http://hirefire.io/
|
31
30
|
licenses: []
|
31
|
+
metadata: {}
|
32
32
|
post_install_message:
|
33
33
|
rdoc_options: []
|
34
34
|
require_paths:
|
35
35
|
- lib
|
36
36
|
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
-
none: false
|
38
37
|
requirements:
|
39
|
-
- -
|
38
|
+
- - '>='
|
40
39
|
- !ruby/object:Gem::Version
|
41
40
|
version: '0'
|
42
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
43
|
-
none: false
|
44
42
|
requirements:
|
45
|
-
- -
|
43
|
+
- - '>='
|
46
44
|
- !ruby/object:Gem::Version
|
47
45
|
version: '0'
|
48
46
|
requirements: []
|
49
47
|
rubyforge_project:
|
50
|
-
rubygems_version:
|
48
|
+
rubygems_version: 2.0.0
|
51
49
|
signing_key:
|
52
|
-
specification_version:
|
53
|
-
summary:
|
54
|
-
dynos!
|
50
|
+
specification_version: 4
|
51
|
+
summary: HireFire.io - The Heroku Dyno Manager - Autoscaling your web and worker dynos!
|
55
52
|
test_files: []
|
56
53
|
has_rdoc:
|