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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWZkNzZkMWQzNTZkMDUwMWRmM2YwZTliNjM4Y2JiYjBiOGEyYTg0ZQ==
4
+ ZDRhNTkzZmQ3ODY5YTA0NDE1ODc5MjAwMjFkNzJkNzQxZDI4ZjFjYw==
5
5
  data.tar.gz: !binary |-
6
- MWE5OTMzNzJmYjljMTY3MDhiNDEwZTMyMjU4YmRkNjgwMTUxZDhiNg==
6
+ OTA4MmQxYzg4YjQwODA1YTVhMGYyNjI0ODNlZmFiYWY2ZTIxNDUxMQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGRmZWUxODM0MDkyMTQzYmFmNjg3ZDg4YTYzNTAxMjU3OTdhMWEwNzA2OGE4
10
- ZmI5NjY5OGE2YTZhYThlMWY4ZjgzOWI1ZWU3NjMxMTcyYTVkOGU1MzljZDUz
11
- M2QyYzYyM2M4ZTM3ZGRjOWQ5YTdlZjc2MTk1ZTFmY2NiNzQ0MWI=
9
+ MGJjMmFlOThhYjljMGE3NmFkMTVmMTVjMDQwMzQzOWRmYjA5ZWM5YjIwOGZm
10
+ NDU0OTgyNWVjM2VkNGMwMjgzN2FlMDM0ZjA4MzJjZjY3ZWVlZjU4ZTE1NTBi
11
+ NmU2NzA4ZmI3NWVkOWY3Y2ZhMDVlMWY1YzczNmViN2RiZTBmZWY=
12
12
  data.tar.gz: !binary |-
13
- NTUwYmMwNTlhZGEzM2QzMDdiYzUzN2FhYzc3ZTFiMWY0ODdkN2Q4OTNjZmQ4
14
- NDJlZWYxZjM0NDA0Nzk3ZTZmNGI0ZWYzZDExNjVkZDcyNDc1YmUwMDcyOGM4
15
- M2EyNjQxMDNkNDA5Y2IzY2I1OWZjMzUwNGZjYWI1NGMxYjQ0NmI=
13
+ MzMzMjRiMzA1NDI3NWFhOGNiZmJjNmY2OGU3MGNjNTE5MTFlYWY3MGY2OTUz
14
+ ODFmNzU0YmYxNTZiYjc2OTQ1YTVkOTgyNjE5MmY5ZmZhOTRmYzJhYTJjNjBk
15
+ ZDI1ZjQwZDE5ZmE1YzhlNGRlMzZhMWE3NjFlMzAzZGQ0ZjcyYjE=
data/.gitignore CHANGED
@@ -34,3 +34,4 @@ build/
34
34
 
35
35
  # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
36
36
  .rvmrc
37
+ *.log
data/README.md CHANGED
@@ -1,34 +1,20 @@
1
- # Rrake
1
+ # RRake
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rrake`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- TODO: Delete this and the text above, and describe your gem
5
+ RRake stands for **'remote-rake'**.
6
6
 
7
7
  ## Installation
8
8
 
9
- Add this line to your application's Gemfile:
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
- TODO: Write usage instructions here
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
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release` to create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
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
- raker = Rrake::Raker.new
9
- raker.process_messages
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
@@ -1,3 +1,3 @@
1
1
  module Rrake
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
data/rrake.gemspec CHANGED
@@ -22,4 +22,5 @@ Gem::Specification.new do |spec|
22
22
  spec.add_development_dependency "bundler", "~> 1.8"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_dependency 'aws-sdk-v1', "~> 1.60.2"
25
+ spec.add_dependency "dante", '~> 0.2.0'
25
26
  end
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.2.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: