dustcart 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 +4 -4
- data/README.md +1 -0
- data/lib/dustcart/dsl.rb +4 -5
- data/lib/dustcart/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: 4d97b71787f1d65b045c0a12aa49bbfb3c188574
|
4
|
+
data.tar.gz: 6e9eec49566a1d84ba6aa59f41ab1d2e7a4f7263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 972e8c1b5db68163ed5f751260e2b0dd49fe8c9b53cc8a5c5baa9a610f370ffad6933c92ca30a3b648d17af53703118ab292c2122f9e159bb27c60132b13bfe3
|
7
|
+
data.tar.gz: 80d23388d7cfb4ba87fb0d21df73144e1db4506496d87983ea0c0939d8f66530a545e27114f519eb4c7acd825c6cd82e88c6cdd76e1610bad4c2545b61ceea3b
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
# Dustcart
|
2
2
|
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/dustcart.svg)](https://badge.fury.io/rb/dustcart)
|
3
4
|
[![CircleCI](https://circleci.com/gh/tamano/dustcart.svg?style=svg)](https://circleci.com/gh/tamano/dustcart)
|
4
5
|
[![Code Climate](https://codeclimate.com/github/tamano/dustcart/badges/gpa.svg)](https://codeclimate.com/github/tamano/dustcart)
|
5
6
|
[![Test Coverage](https://codeclimate.com/github/tamano/dustcart/badges/coverage.svg)](https://codeclimate.com/github/tamano/dustcart/coverage)
|
data/lib/dustcart/dsl.rb
CHANGED
@@ -19,18 +19,17 @@ module Dustcart
|
|
19
19
|
def dump_site(path)
|
20
20
|
raise 'dump_site has already set.' if @_temp_dir
|
21
21
|
|
22
|
-
path.chomp
|
22
|
+
@dump_base = path.chomp('/')
|
23
23
|
time_str = Time.now.strftime('%Y%m%d%H%M%S')
|
24
|
-
@_temp_dir = "#{
|
25
|
-
@dump_base = path
|
24
|
+
@_temp_dir = "#{@dump_base}/#{time_str}"
|
26
25
|
end
|
27
26
|
|
28
27
|
def temp_dir
|
29
28
|
return @_temp_dir if @_temp_dir
|
30
29
|
|
30
|
+
@dump_base = '/tmp/dustcart'
|
31
31
|
time_str = Time.now.strftime('%Y%m%d%H%M%S')
|
32
|
-
@_temp_dir = "
|
33
|
-
@dump_base = '/tmp'
|
32
|
+
@_temp_dir = "#{@dump_base}/#{time_str}"
|
34
33
|
end
|
35
34
|
|
36
35
|
def group(*args, &block)
|
data/lib/dustcart/version.rb
CHANGED