volt 0.9.5.pre6 → 0.9.5.pre7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/volt/cli.rb +20 -18
- data/lib/volt/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: 4f390816bb9edfcbfae226435bb32d20e2d70ea4
|
|
4
|
+
data.tar.gz: ea40df8a4eceb9edc38baa64cd70499537d8d4aa
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 12e637430dd9d239703bf3383132610128245e3b0ec1509bd027ba6ed9835aac3538c5e15e5f9be35a58bb4fde768aec0f001c88226e4e8b25abf0b95e70539c
|
|
7
|
+
data.tar.gz: 0ed51b143c52f690c813afe97b7e1decd282b6800269af5b8b9d3953dc742e60da863b5608c7a7cb3881fffe3935c3a9c5f0558d51fa12f028f2f051d100cbb9
|
data/lib/volt/cli.rb
CHANGED
|
@@ -125,24 +125,26 @@ module Volt
|
|
|
125
125
|
say("Collection #{collection} dropped", :green) if drop == true
|
|
126
126
|
end
|
|
127
127
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
128
|
+
no_tasks do
|
|
129
|
+
def move_to_root
|
|
130
|
+
unless Gem.win_platform?
|
|
131
|
+
# Change CWD to the root of the volt project
|
|
132
|
+
pwd = Dir.pwd
|
|
133
|
+
changed = false
|
|
134
|
+
loop do
|
|
135
|
+
if File.exists?(pwd + '/Gemfile')
|
|
136
|
+
Dir.chdir(pwd) if changed
|
|
137
|
+
break
|
|
138
|
+
else
|
|
139
|
+
changed = true
|
|
140
|
+
|
|
141
|
+
# Move up a directory and try again
|
|
142
|
+
pwd = pwd.gsub(/\/[^\/]+$/, '')
|
|
143
|
+
|
|
144
|
+
if pwd == ''
|
|
145
|
+
puts "You are not currently in a volt project directory"
|
|
146
|
+
exit 1
|
|
147
|
+
end
|
|
146
148
|
end
|
|
147
149
|
end
|
|
148
150
|
end
|
data/lib/volt/version.rb
CHANGED