joekhoobyar-capsaicin 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/VERSION.yml +1 -1
- data/lib/capsaicin.rb +1 -0
- data/lib/capsaicin/ui.rb +20 -0
- metadata +4 -3
data/Rakefile
CHANGED
@@ -15,8 +15,8 @@ begin
|
|
15
15
|
s.authors = ["Joe Khoobyar"]
|
16
16
|
s.email = "joe@ankhcraft.com"
|
17
17
|
|
18
|
-
s.add_dependency 'capistrano'
|
19
|
-
s.add_dependency 'archive-tar-minitar'
|
18
|
+
s.add_dependency 'capistrano', ['>= 2.0']
|
19
|
+
s.add_dependency 'archive-tar-minitar', ['>= 0.5']
|
20
20
|
end
|
21
21
|
rescue LoadError
|
22
22
|
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
data/VERSION.yml
CHANGED
data/lib/capsaicin.rb
CHANGED
@@ -7,3 +7,4 @@ require File.join(File.dirname(__FILE__), %w(capsaicin sys))
|
|
7
7
|
require File.join(File.dirname(__FILE__), %w(capsaicin invocation))
|
8
8
|
require File.join(File.dirname(__FILE__), %w(capsaicin files))
|
9
9
|
require File.join(File.dirname(__FILE__), %w(capsaicin service))
|
10
|
+
require File.join(File.dirname(__FILE__), %w(capsaicin ui))
|
data/lib/capsaicin/ui.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
module Capsaicin
|
2
|
+
module UI
|
3
|
+
module AskPass
|
4
|
+
def password_prompt(prompt='Password: ')
|
5
|
+
if cap_askpass = ENV['CAP_ASKPASS']
|
6
|
+
`#{cap_askpass} "#{prompt}"`.strip
|
7
|
+
else
|
8
|
+
password_prompt_console
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
(class << Capistrano::CLI; self; end).class_eval do
|
14
|
+
alias :password_prompt_console :password_prompt
|
15
|
+
include AskPass
|
16
|
+
alias :password_prompt_askpass :password_prompt
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: joekhoobyar-capsaicin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Khoobyar
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ">="
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
23
|
+
version: "2.0"
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: archive-tar-minitar
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: "0"
|
33
|
+
version: "0.5"
|
34
34
|
version:
|
35
35
|
description: Spicy capistrano extensions for various needs
|
36
36
|
email: joe@ankhcraft.com
|
@@ -58,6 +58,7 @@ files:
|
|
58
58
|
- lib/capsaicin/service/lsb.rb
|
59
59
|
- lib/capsaicin/service/windows.rb
|
60
60
|
- lib/capsaicin/sys.rb
|
61
|
+
- lib/capsaicin/ui.rb
|
61
62
|
has_rdoc: true
|
62
63
|
homepage: http://github.com/joekhoobyar/capsaicin
|
63
64
|
post_install_message:
|