rrake 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +1 -0
- data/README.md +6 -20
- data/bin/rrake +3 -5
- data/lib/rrake/version.rb +1 -1
- data/rrake.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDRhNTkzZmQ3ODY5YTA0NDE1ODc5MjAwMjFkNzJkNzQxZDI4ZjFjYw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTA4MmQxYzg4YjQwODA1YTVhMGYyNjI0ODNlZmFiYWY2ZTIxNDUxMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGJjMmFlOThhYjljMGE3NmFkMTVmMTVjMDQwMzQzOWRmYjA5ZWM5YjIwOGZm
|
10
|
+
NDU0OTgyNWVjM2VkNGMwMjgzN2FlMDM0ZjA4MzJjZjY3ZWVlZjU4ZTE1NTBi
|
11
|
+
NmU2NzA4ZmI3NWVkOWY3Y2ZhMDVlMWY1YzczNmViN2RiZTBmZWY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MzMzMjRiMzA1NDI3NWFhOGNiZmJjNmY2OGU3MGNjNTE5MTFlYWY3MGY2OTUz
|
14
|
+
ODFmNzU0YmYxNTZiYjc2OTQ1YTVkOTgyNjE5MmY5ZmZhOTRmYzJhYTJjNjBk
|
15
|
+
ZDI1ZjQwZDE5ZmE1YzhlNGRlMzZhMWE3NjFlMzAzZGQ0ZjcyYjE=
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,34 +1,20 @@
|
|
1
|
-
#
|
1
|
+
# RRake
|
2
2
|
|
3
|
-
|
3
|
+
RRake is a utility for running 'local' rake commands from remote instructors. For example, if you've got an asynchronous background task running on a 'worker' server that upon job completion needs to tell the front end servers to renerate cached feeds, then RRake is for you.
|
4
4
|
|
5
|
-
|
5
|
+
RRake stands for **'remote-rake'**.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'rrake'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
16
|
-
|
17
|
-
$ bundle
|
18
|
-
|
19
|
-
Or install it yourself as:
|
9
|
+
Install it yourself as:
|
20
10
|
|
21
11
|
$ gem install rrake
|
22
12
|
|
23
13
|
## Usage
|
24
14
|
|
25
|
-
|
26
|
-
|
27
|
-
## Development
|
28
|
-
|
29
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bin/console` for an interactive prompt that will allow you to experiment.
|
15
|
+
All of RRake's configuraion are passed in as environment variables. To run the rrake from the console:
|
30
16
|
|
31
|
-
|
17
|
+
AWS_ACCESS_KEY=<secretstuff> AWS_SECRET_ACCESS_KEY=<moresecretstuff> RRAKE_QUEUE=<AWS SQS QUEUE for commands> rrake
|
32
18
|
|
33
19
|
## Contributing
|
34
20
|
|
data/bin/rrake
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
require 'rubygems'
|
3
|
-
|
4
|
-
# Prepares the $LOAD_PATH by adding to it lib directories of the gem and
|
5
|
-
# its dependencies:
|
3
|
+
require 'dante'
|
6
4
|
require 'rrake'
|
7
5
|
|
8
|
-
|
9
|
-
|
6
|
+
Dante::Runner.new('rrake').execute( :daemonize => true, :pid_path => "/tmp/rrake.pid") { Rrake::Raker.new.process_messages }
|
7
|
+
|
data/lib/rrake/version.rb
CHANGED
data/rrake.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rrake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- EmergeAdapt
|
@@ -52,6 +52,20 @@ dependencies:
|
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 1.60.2
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: dante
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.2.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.2.0
|
55
69
|
description: Runs 'local' rake commands requested remotely via SNS. For example a
|
56
70
|
worker process can request front end servers to regenerate feeds.
|
57
71
|
email:
|