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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 21b8adc04ba1abb0fa4de1cd1ba9d29b53a1a3c0
4
- data.tar.gz: c2944d29a19ec7acd679bac7afb758db7eeaae52
3
+ metadata.gz: b693ca389fcecc5ee71f54f0c61e2f3f667a5ad1
4
+ data.tar.gz: 29d2bb97424735eae2d4e04ad924d8903ef204cc
5
5
  SHA512:
6
- metadata.gz: b4ea2df8459df2321f9ce7c3a449f8bd6ab2d8e33d3d2cba2176d364fefc9e7fc5b7908dd58cb44391a428856a9f11a68cad1def236aee4c48fb795aefa3715e
7
- data.tar.gz: 7399046d15b3265d0e7b6a08b1368887a243b045071898b0c5ef0061a8a3b6bdf12084b8926e327446d1551776a56211bf013d207c43128edda9637969871fd0
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.1 - wip
4
+ ### v0.0.2 - 2014-01-15
5
5
 
6
- * setup base gem skeleton
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 schecule
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 schedule
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} download >> /dev/null 2>&1' # s3log_#{@jobname}\n"
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
@@ -1,3 +1,3 @@
1
1
  module S3log
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: s3log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mose