capistrano-node-whenever 0.0.0 → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/README.md +29 -0
- data/Rakefile +8 -0
- data/capistrano-node-whenever.gemspec +19 -0
- data/lib/capistrano-node-whenever.rb +4 -5
- data/lib/capistrano/node_whenever.rb +1 -0
- data/lib/capistrano/node_whenever/tasks/capistrano_node_whenever.rake +14 -0
- data/lib/capistrano/node_whenever/version.rb +5 -0
- data/test/test_capistrano-node-whenever.rb +0 -0
- metadata +26 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89af53f166d9b68e54d52de86b4e75a8b1fb47a1
|
|
4
|
+
data.tar.gz: deab2ca82dfb6c3b2f6f6a6800ff04d77e0ce473
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 49e318cb3d9dd8ec28e52c8da22bfea1a2166ebe3ad0a291fc3c93d004c96e5aa27cfedbf9966bc7fea9e00de32ef97b54a2a4c75f9197bca828c9ae98d16f84
|
|
7
|
+
data.tar.gz: a8268fe949b3764c50ef6b86f936cb37a76d11bff7f32f53e430830dca8c623767acb03691fbc76d750ee0b17bec82fd342ee9a16223b4f3106e950db67753e9
|
data/Gemfile
ADDED
data/README.md
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
> Capistrano plugin for [node-whenever](https://github.com/toymachiner62/node-whenever)
|
|
2
|
+
[](https://travis-ci.org/toymachiner62/capistrano-node-whenever)
|
|
3
|
+
|
|
4
|
+
# Install
|
|
5
|
+
|
|
6
|
+
```sh
|
|
7
|
+
$ gem install capistrano-node-whenever
|
|
8
|
+
```
|
|
9
|
+
|
|
10
|
+
Or with Bundler
|
|
11
|
+
|
|
12
|
+
```ruby
|
|
13
|
+
gem "capistrano-node-whenever"
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
# Getting Started
|
|
17
|
+
|
|
18
|
+
This plugin runs the necessary commands to update your crontab via your projects `schedule.js` file from [node-whenever](https://github.com/toymachiner62/node-whenever).
|
|
19
|
+
|
|
20
|
+
Just add this line to your Capfile:
|
|
21
|
+
|
|
22
|
+
```ruby
|
|
23
|
+
require 'capistrano/node_whenever'
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
# Contribute
|
|
27
|
+
I'm happy to accept pull requests.
|
|
28
|
+
|
|
29
|
+
Enjoy!
|
data/Rakefile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
require 'capistrano/node_whenever/version'
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = 'capistrano-node-whenever'
|
|
7
|
+
s.version = Capistrano::NodeWhenever::VERSION
|
|
8
|
+
s.date = '2015-11-10'
|
|
9
|
+
s.summary = 'Manage your crontab in Node.js via capistrano deployment'
|
|
10
|
+
s.author = 'Tom Caflisch'
|
|
11
|
+
s.email = 'tomcaflisch@gmail.com'
|
|
12
|
+
s.files = `git ls-files`.split("\n")
|
|
13
|
+
s.license = 'ISC'
|
|
14
|
+
s.description = 'A simple description'
|
|
15
|
+
s.homepage = 'https://github.com/toymachiner62/capistrano-node-whenever'
|
|
16
|
+
s.require_paths = ["lib"]
|
|
17
|
+
|
|
18
|
+
s.add_dependency 'capistrano', '~> 3.0'
|
|
19
|
+
end
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
end
|
|
1
|
+
#require "capistrano/node_whenever/version"
|
|
2
|
+
|
|
3
|
+
#load File.expand_path("../node_whenever/tasks/tasks.rake", __FILE__)
|
|
4
|
+
#load File.expand_path("../tasks/rbenv.rake", __FILE__)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
load File.expand_path("../node_whenever/capistrano_node_whenever/tasks.rake", __FILE__)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
namespace :capistrano_node_whenever do
|
|
2
|
+
|
|
3
|
+
desc 'Updates the crontab with the contents of the schedule.js file'
|
|
4
|
+
task :update_crontab do
|
|
5
|
+
on roles :all do
|
|
6
|
+
execute :npm, 'install', '-g', 'node-whenever'
|
|
7
|
+
execute :updateCrontab
|
|
8
|
+
end
|
|
9
|
+
end
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
namespace :deploy do
|
|
13
|
+
after :updated, 'capistrano_node_whenever:update_crontab'
|
|
14
|
+
end
|
|
File without changes
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-node-whenever
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tom Caflisch
|
|
@@ -9,15 +9,38 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
date: 2015-11-10 00:00:00.000000000 Z
|
|
12
|
-
dependencies:
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: capistrano
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.0'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.0'
|
|
13
27
|
description: A simple description
|
|
14
28
|
email: tomcaflisch@gmail.com
|
|
15
29
|
executables: []
|
|
16
30
|
extensions: []
|
|
17
31
|
extra_rdoc_files: []
|
|
18
32
|
files:
|
|
33
|
+
- ".travis.yml"
|
|
34
|
+
- Gemfile
|
|
35
|
+
- README.md
|
|
36
|
+
- Rakefile
|
|
37
|
+
- capistrano-node-whenever.gemspec
|
|
19
38
|
- lib/capistrano-node-whenever.rb
|
|
20
|
-
|
|
39
|
+
- lib/capistrano/node_whenever.rb
|
|
40
|
+
- lib/capistrano/node_whenever/tasks/capistrano_node_whenever.rake
|
|
41
|
+
- lib/capistrano/node_whenever/version.rb
|
|
42
|
+
- test/test_capistrano-node-whenever.rb
|
|
43
|
+
homepage: https://github.com/toymachiner62/capistrano-node-whenever
|
|
21
44
|
licenses:
|
|
22
45
|
- ISC
|
|
23
46
|
metadata: {}
|