jenkins_cron 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
4
+ - 1.9.3
5
+ - 1.8.7
data/README.md CHANGED
@@ -18,15 +18,21 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
+ First, write a `jenkins.yml` to use `jenkins_api_client`. See also [a sample yaml file on `jenkins_api_client`](https://github.com/arangamani/jenkins_api_client/blob/master/config/login.yml.example).
22
+
21
23
  $ cat config/jenkins.yml
22
24
  server_url: "http://jenkins.dev"
23
25
 
26
+ Next, create a directory `config/schedule` and write DSL.
27
+
24
28
  $ cat config/schedule/foo.rb
25
29
  job :test1 do
26
30
  command "whoami", user: "riywo"
27
31
  timer every: 3.minute
28
32
  end
29
33
 
34
+ Then, run `jenkins_cron update` command.
35
+
30
36
  $ jenkins_cron update foo
31
37
  I, [2013-07-25T04:33:41.887344 #52816] INFO -- : Obtaining jobs matching filter 'foo-test1'
32
38
  I, [2013-07-25T04:33:41.887470 #52816] INFO -- : GET /api/json
@@ -40,6 +46,25 @@ Or install it yourself as:
40
46
 
41
47
  TODO: Write documentation
42
48
 
49
+ ## TODO
50
+
51
+ * CLI sub command
52
+ * update diff, confirm
53
+ * show scheduled jobs
54
+ * delete
55
+ * show timer examples
56
+ * 2013/7/15 22:00, 2013/7/15 23:00…
57
+ * job cascading
58
+ * more tests
59
+
60
+ ## Thanks to
61
+
62
+ This module is inspired by [whenever](https://github.com/javan/whenever).
63
+
64
+ This module uses [jenkins_api_client](https://github.com/arangamani/jenkins_api_client).
65
+
66
+ Many thanks!
67
+
43
68
  ## Contributing
44
69
 
45
70
  1. Fork it
@@ -20,6 +20,8 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_dependency "thor"
22
22
  spec.add_dependency "jenkins_api_client", "~> 0.13.0"
23
+ spec.add_dependency "activesupport"
24
+ spec.add_dependency "chronic"
23
25
 
24
26
  spec.add_development_dependency "bundler", "~> 1.3"
25
27
  spec.add_development_dependency "rake"
@@ -1,3 +1,3 @@
1
1
  module JenkinsCron
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins_cron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,6 +43,38 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: 0.13.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: activesupport
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: chronic
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :runtime
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
46
78
  - !ruby/object:Gem::Dependency
47
79
  name: bundler
48
80
  requirement: !ruby/object:Gem::Requirement
@@ -100,6 +132,7 @@ extensions: []
100
132
  extra_rdoc_files: []
101
133
  files:
102
134
  - .gitignore
135
+ - .travis.yml
103
136
  - Gemfile
104
137
  - LICENSE.txt
105
138
  - README.md