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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c8792cf714bcfdfe1c74fc830479a23a4e1418ff
4
- data.tar.gz: 96509b850db2557a5e1a76d61438f62f67ab9ed3
3
+ metadata.gz: 89af53f166d9b68e54d52de86b4e75a8b1fb47a1
4
+ data.tar.gz: deab2ca82dfb6c3b2f6f6a6800ff04d77e0ce473
5
5
  SHA512:
6
- metadata.gz: c9fdd49bfc75f4452a15f959caf0995f6bee9537d2d1e1646c58b01fffba6652a48696cf57c53d7cf9f6ffb2fe2e369d07c235c6df619562337878a90abd674a
7
- data.tar.gz: ddc388a6a5800e12fd836fdc23c08bb5ea801daac1c9a3cbcc0d973376987c0ef43d5ca0c37424ffbf50f221787f7e370aa0068eeccf9c51eb83e2b9981188d9
6
+ metadata.gz: 49e318cb3d9dd8ec28e52c8da22bfea1a2166ebe3ad0a291fc3c93d004c96e5aa27cfedbf9966bc7fea9e00de32ef97b54a2a4c75f9197bca828c9ae98d16f84
7
+ data.tar.gz: a8268fe949b3764c50ef6b86f936cb37a76d11bff7f32f53e430830dca8c623767acb03691fbc76d750ee0b17bec82fd342ee9a16223b4f3106e950db67753e9
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0
4
+ - 2.1
5
+ - 2.2
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in capistrano-rails.gemspec
4
+ gemspec
@@ -0,0 +1,29 @@
1
+ > Capistrano plugin for [node-whenever](https://github.com/toymachiner62/node-whenever)
2
+ [![Build Status](https://travis-ci.org/toymachiner62/capistrano-node-whenever.svg?branch=master)](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!
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
@@ -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
- class CapistranoNodeWhenever
2
- def self.hi
3
- puts "Aloha!"
4
- end
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
@@ -0,0 +1,5 @@
1
+ module Capistrano
2
+ module NodeWhenever
3
+ VERSION = '0.0.1'
4
+ end
5
+ 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.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
- homepage: http://example.com
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: {}