croner 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e2c53f99fb1f7001e5afa108ccecc0139b9d7568
4
- data.tar.gz: 5900fc7bd559c463b9eda63b0810dfea562f2de4
3
+ metadata.gz: 71d7ec1f376924be8e2810352fb1e6779682f810
4
+ data.tar.gz: 201feb08189a2f7631a4c4a0e884b79f374148a3
5
5
  SHA512:
6
- metadata.gz: 244c31d44736a6e5cf850e62cb36e0b0c308f5234ad3e56c4ba16aba420c1bdcac16aa68f943eb5498177b0d579ad02ff7ae09fd010be24338589bba7232dba4
7
- data.tar.gz: 380b32163e91d2995b5d394ed8449aa58b19b1f26e2003a497c7d764c3e5fa994209f34c50c7c1825b36b12e670ca1c5f9907e57049f74f4bbc9dd89275d94e3
6
+ metadata.gz: 637d3fca0da9cd0a8db3a1ec4f73060f0ea1e021e41bf7f06c1af4df471881d2aa35652630b5f66fd05fefdc69a341893c7f0a1a5ad45c105b9dcb647f2708cc
7
+ data.tar.gz: 4bfe6da60691dff8bcae0b95b3a7b107361ceb56e66921759008665408971a68c347176b604390df2976d59e44326511664159d7a7102bbca910e1843ed16b25
data/README.md CHANGED
@@ -16,7 +16,7 @@ $ bundle
16
16
  ```
17
17
 
18
18
  ## Usage
19
- Make `config/croner/hosts/[hostname]` and run `croner:update`.
19
+ Make `config/croner/hosts/[hostname]` and run task `croner:update`.
20
20
 
21
21
  ## License
22
22
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -9,6 +9,9 @@ module Croner
9
9
  # 設定内容を取得
10
10
  insert_rows = File.read(Rails.root.join('config', 'croner', 'hosts', `hostname`.delete("\n"))).split("\n")
11
11
 
12
+ # 現在のcron設定をバックアップしておく
13
+ `crontab -l > cron_#{Time.current.strftime('%Y%m%d%H%M%S')}.bak`
14
+
12
15
  # 現在のcron設定を取得
13
16
  cron_rows = `crontab -l`.split("\n")
14
17
 
@@ -1,3 +1,3 @@
1
1
  module Croner
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: croner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ykogure