rtrain 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rtrain.rb +5 -7
- 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: b428f7e815c417455e8e7df875933b84550503f4
|
4
|
+
data.tar.gz: 2b0568177ea28f6030dd786f22eac39dcf24a67e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5266f9c567bb46770432ecc796319282451399bd2a90aaca3670ed3261cf703c74de7387b8d695ffa347a2ada7cb6af0b3276c5c4abacb9f517ea0938989a95b
|
7
|
+
data.tar.gz: 955f5de3ffe5d277e354682fa61584e91869a94d23a218b216ce11444636c6f1c1352992965cc326d12705cf1f2d0b1a2ebba73f67c5ae4ccc2c42f20fe30e89
|
data/lib/rtrain.rb
CHANGED
@@ -1,14 +1,12 @@
|
|
1
|
-
require 'pry'
|
2
|
-
|
3
1
|
module RTrain
|
4
2
|
def self.run
|
5
3
|
home = Dir.home
|
6
|
-
|
7
|
-
|
8
|
-
new_css =
|
4
|
+
home = Dir.chdir(home)
|
5
|
+
new_css = File.join("**", "rtrain_scaffold.scss")
|
6
|
+
new_css = Dir.glob(new_css)[0]
|
7
|
+
new_css = open(new_css).read
|
9
8
|
scaff = open('app/assets/stylesheets/scaffolds.scss', 'w')
|
10
9
|
scaff.write(new_css)
|
11
10
|
scaff.close
|
12
11
|
end
|
13
|
-
end
|
14
|
-
|
12
|
+
end
|