cap-strap 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

data/README.md CHANGED
@@ -6,7 +6,7 @@ deploy key.
6
6
 
7
7
  ## Notes
8
8
 
9
- Currently cap-strap has only been tested on Ubuntu 10.04 and 10.10.
9
+ Currently cap-strap has only been tested on Ubuntu 10.04 and 10.10, 12.04.
10
10
 
11
11
  ## Installation
12
12
 
@@ -36,7 +36,8 @@ Note: Paths are relative to the root
36
36
 
37
37
  ``` ruby
38
38
  set :bootstrap_user, "<name of root user for bootstraping>" # default: prompt for user input
39
- set :bootstrap_password, "<password associated with the root user>" # default: prompt for user input
39
+ set :bootstrap_password, "<password associated with the root user>" # default: empty string
40
+ set :bootstrap_keys, "<array containing path to ssh keys>" # default: empty array
40
41
  set :deploy_user, "<name of user for future deployes>" # default: 'deploy'
41
42
  set :deploy_user_password, "<password for deploy user>" # default: skips. Recommend using authorized keys
42
43
  set :authorized_keys_file, "<location of authorized keys>" # skips if not specified
@@ -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.2"
6
+ s.version = "0.1.3"
7
7
  s.authors = ["Shaun Dern"]
8
8
  s.email = ["shaun@substantial.com"]
9
9
  s.homepage = "http://github.com/substantial/cap-strap"
@@ -17,19 +17,22 @@ 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) { Capistrano::CLI.ui.ask("bootstrap root user password: ") }
20
+ _cset(:bootstrap_password) { ''}
21
+ _cset(:bootstrap_keys) { [] }
21
22
  _cset(:known_hosts) { default_known_hosts }
22
23
  _cset(:packages) { [] }
23
24
  _cset :authorized_keys_file, ""
24
25
  _cset :deploy_key_file, ""
25
26
 
26
27
  set (:user) { bootstrap_user }
27
- set (:password) { bootstrap_password }
28
+ set (:password) { bootstrap_password } unless bootstrap_password.empty?
29
+ ssh_options[:keys] = bootstrap_keys unless bootstrap_keys.empty?
28
30
 
29
31
  desc "Bootstraps a fresh box. Install RVM, create the deploy user, upload keys."
30
32
  task :default do
31
33
  set (:user) { bootstrap_user }
32
- set (:password) { bootstrap_password }
34
+ set (:password) { bootstrap_password } unless bootstrap_password.empty?
35
+ ssh_options[:keys] = bootstrap_keys unless bootstrap_keys.empty?
33
36
  rvm.default
34
37
  bootstrap.create_deploy_user
35
38
  bootstrap.upload_deploy_authorized_keys
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.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-02 00:00:00.000000000 Z
12
+ date: 2012-10-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -180,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
180
  version: '0'
181
181
  segments:
182
182
  - 0
183
- hash: 3071073874735159760
183
+ hash: -848248953766692971
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: 3071073874735159760
192
+ hash: -848248953766692971
193
193
  requirements: []
194
194
  rubyforge_project: cap-strap
195
195
  rubygems_version: 1.8.24