cap-strap 0.1.3 → 0.1.4

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.

Potentially problematic release.


This version of cap-strap might be problematic. Click here for more details.

@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "cap-strap"
6
- s.version = "0.1.3"
6
+ s.version = "0.1.4"
7
7
  s.authors = ["Shaun Dern"]
8
8
  s.email = ["shaun@substantial.com"]
9
9
  s.homepage = "http://github.com/substantial/cap-strap"
@@ -22,7 +22,7 @@ end
22
22
  def create_user(user, password)
23
23
  unless user_exists?(user)
24
24
  command = "useradd -s /bin/bash -d /home/#{user}"
25
- command << " -p `perl -e 'print crypt(#{password}, salt)'`" if password
25
+ command << " -p `perl -e 'print crypt(#{password}, salt)'`" unless password.empty?
26
26
  command << " -m #{user}"
27
27
  run "#{sudo} #{command}"
28
28
  end
@@ -17,7 +17,8 @@ module Capistrano::CapStrap
17
17
 
18
18
  _cset(:deploy_user, "deploy")
19
19
  _cset(:bootstrap_user) { Capistrano::CLI.ui.ask("bootstrap root user: ") }
20
- _cset(:bootstrap_password) { ''}
20
+ _cset(:bootstrap_password) { '' }
21
+ _cset(:deploy_user_password) { '' }
21
22
  _cset(:bootstrap_keys) { [] }
22
23
  _cset(:known_hosts) { default_known_hosts }
23
24
  _cset(:packages) { [] }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cap-strap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -180,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  segments:
182
182
  - 0
183
- hash: -848248953766692971
183
+ hash: -266458108942828419
184
184
  required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  none: false
186
186
  requirements:
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  segments:
191
191
  - 0
192
- hash: -848248953766692971
192
+ hash: -266458108942828419
193
193
  requirements: []
194
194
  rubyforge_project: cap-strap
195
195
  rubygems_version: 1.8.24