blade 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blade.rb +7 -0
- data/lib/blade/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: 5c820732f54fddb754edf90ce041baa8999cee4c
|
4
|
+
data.tar.gz: 0ea42a89a9a869e6e9bd66610e199f0e690dd721
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10debefa0f750378c280b740502bf0f355f2e04780f96b544146a727e3ce84d9124b217cfd1c515425a10d594b53cd4ba8995985dc6523f68ac3343c2e915ac6
|
7
|
+
data.tar.gz: f15b1d719f668b9637d5f645ad2237d209e627fa7456ad7de07fed134eeb6cd2fe00628ae72ad5e1cab962c5ed7de90181980274d9aafa16cdcb9a2e71029ff9
|
data/lib/blade.rb
CHANGED
@@ -37,6 +37,8 @@ module Blade
|
|
37
37
|
|
38
38
|
def start(options = {})
|
39
39
|
return if running?
|
40
|
+
clean_tmp_path
|
41
|
+
|
40
42
|
initialize!(options)
|
41
43
|
load_interface!
|
42
44
|
|
@@ -81,6 +83,11 @@ module Blade
|
|
81
83
|
Pathname.new(".").join("tmp/blade")
|
82
84
|
end
|
83
85
|
|
86
|
+
def clean_tmp_path
|
87
|
+
tmp_path.rmtree if tmp_path.exist?
|
88
|
+
tmp_path.mkpath
|
89
|
+
end
|
90
|
+
|
84
91
|
private
|
85
92
|
def handle_exit
|
86
93
|
at_exit do
|
data/lib/blade/version.rb
CHANGED