nodex 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nodex/deploy.rb +2 -2
- data/lib/nodex/dsl.rb +1 -5
- data/lib/nodex/version.rb +1 -1
- metadata +1 -1
data/lib/nodex/deploy.rb
CHANGED
@@ -3,7 +3,7 @@ module Nodex
|
|
3
3
|
include Helper
|
4
4
|
include DSL
|
5
5
|
|
6
|
-
attr_accessor :repository, :user, :application, :host, :path, :branch, :environment, :cache_dirs, :db_example_name, :skip_steps
|
6
|
+
attr_accessor :repository, :user, :application, :host, :path, :branch, :environment, :cache_dirs, :db_example_name, :skip_steps, :login_shell
|
7
7
|
|
8
8
|
def initialize
|
9
9
|
self.server = :passenger
|
@@ -24,7 +24,7 @@ module Nodex
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def remote_setup
|
27
|
-
remote_run
|
27
|
+
remote_run "cd #{path} && #{git_clone} && #{app_checkout} && #{copy_example_file} && #{install_bundler} && #{bundle_cmd} && #{rake_db_create}"
|
28
28
|
local_setup
|
29
29
|
end
|
30
30
|
|
data/lib/nodex/dsl.rb
CHANGED
@@ -26,10 +26,6 @@ module Nodex
|
|
26
26
|
Kernel.system "#{command}"
|
27
27
|
end
|
28
28
|
|
29
|
-
def bash(command)
|
30
|
-
"bash -l -c #{command}"
|
31
|
-
end
|
32
|
-
|
33
29
|
def clear_cache
|
34
30
|
unless skip_step?('clear_cache')
|
35
31
|
cache_dirs.each do |dir|
|
@@ -67,7 +63,7 @@ module Nodex
|
|
67
63
|
end
|
68
64
|
|
69
65
|
def login_shell_wrap(cmd)
|
70
|
-
"'#{cmd}'"
|
66
|
+
login_shell ? "\"bash -l -c '#{cmd}'\"" : "'#{cmd}'"
|
71
67
|
end
|
72
68
|
end
|
73
69
|
end
|
data/lib/nodex/version.rb
CHANGED