s3log 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -2
- data/README.md +2 -2
- data/lib/s3log/cron.rb +2 -2
- data/lib/s3log/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b693ca389fcecc5ee71f54f0c61e2f3f667a5ad1
|
4
|
+
data.tar.gz: 29d2bb97424735eae2d4e04ad924d8903ef204cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66946073ad6f53919339bf88a433f28f94d95bdbb39222a099729a574b0c7f62e8109018be17bb766cc405ca894fbc2e414937a8c737889db8f67ef44cfd3e58
|
7
|
+
data.tar.gz: 4324aa991e1f0de6254f67594a63ce9f7dbb0a963a6a259993fbd6e14b3c1ab8ce37ac0b602400fc6c8e6738e220569081fa39c0a5172c9aaf90fb0a3cc00848
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
S3log Changelog
|
2
2
|
-------------------
|
3
3
|
|
4
|
-
### v0.0.
|
4
|
+
### v0.0.2 - 2014-01-15
|
5
5
|
|
6
|
-
*
|
6
|
+
* fix on schedule command to generate a valid command
|
7
|
+
|
8
|
+
### v0.0.1 - 2014-01-15
|
9
|
+
|
10
|
+
* made it work basically
|
11
|
+
* setup base gem skeleton
|
data/README.md
CHANGED
@@ -40,12 +40,12 @@ First you need to edit the config.yml file. The purpose is to have one config fi
|
|
40
40
|
When your configuration is ready, veridy that it works with
|
41
41
|
|
42
42
|
s3log list
|
43
|
-
s3log -c another_config.yml
|
43
|
+
s3log list -c another_config.yml
|
44
44
|
|
45
45
|
Then you can update the user crontab for each config file.
|
46
46
|
|
47
47
|
s3log schedule
|
48
|
-
s3log -c another_config.yml
|
48
|
+
s3log schedule -c another_config.yml
|
49
49
|
|
50
50
|
The `schedule` command will update the user crontab, that you can verify with `crontab -l`.
|
51
51
|
In all s3log commands if you don't specify the config file with `-c`, it will use `config.yml`.
|
data/lib/s3log/cron.rb
CHANGED
@@ -13,7 +13,7 @@ module S3log
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def update
|
16
|
-
line = "#{@schedule} cd #{@path} && bash -l -c 'bundle exec s3log -c #{@configfile}
|
16
|
+
line = "#{@schedule} cd #{@path} && bash -l -c 'bundle exec s3log download -c #{@configfile} >> /dev/null 2>&1' # s3log_#{@jobname}\n"
|
17
17
|
tmp_cron_file = Tempfile.open('tmp_cron')
|
18
18
|
included = false
|
19
19
|
existing.each_line do |l|
|
@@ -24,7 +24,7 @@ module S3log
|
|
24
24
|
tmp_cron_file << l
|
25
25
|
end
|
26
26
|
end
|
27
|
-
tmp_cron_file << line unless included
|
27
|
+
tmp_cron_file << "# S3log job #{@jobname}\n#{line}" unless included
|
28
28
|
tmp_cron_file.fsync
|
29
29
|
if system("crontab #{tmp_cron_file.path}")
|
30
30
|
S3log::Log.info "[update] crontab updated."
|
data/lib/s3log/version.rb
CHANGED