rsm 0.1.9 → 0.1.10
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.
- data/VERSION +1 -1
- data/lib/rsm/actions.rb +10 -3
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.10
|
data/lib/rsm/actions.rb
CHANGED
@@ -15,18 +15,25 @@ module Rsm
|
|
15
15
|
@application_root
|
16
16
|
end
|
17
17
|
|
18
|
-
def
|
18
|
+
def ruby_binary
|
19
19
|
rvmrc = application_root.join(".rvmrc")
|
20
20
|
with = if rvmrc.exist?
|
21
21
|
File.new(rvmrc).readline.strip + " exec"
|
22
22
|
else
|
23
23
|
"#{Thor::Util.ruby_command} -S"
|
24
24
|
end
|
25
|
-
|
25
|
+
with
|
26
|
+
end
|
27
|
+
|
28
|
+
def run_ruby_binary(command, config = {})
|
29
|
+
run(command, config.merge(:with => ruby_binary))
|
26
30
|
end
|
27
31
|
|
28
32
|
def run_with_bundler(command, config = {})
|
29
|
-
|
33
|
+
ruby_binary_with_bundler = "#{ruby_binary} bundle exec"
|
34
|
+
inside application_root do
|
35
|
+
run(command, config.merge(:with => ruby_binary_with_bundler))
|
36
|
+
end
|
30
37
|
end
|
31
38
|
|
32
39
|
# relative downloaded filename
|