nodex 0.1.5 → 0.1.6

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/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 bash("cd #{path} && #{git_clone} && #{app_checkout} && #{copy_example_file} && #{install_bundler} && #{bundle_cmd} && #{rake_db_create}")
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
@@ -1,3 +1,3 @@
1
1
  module Nodex
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: nodex
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.5
5
+ version: 0.1.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruno S. Barros