CapConsole 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +4 -0
- data/History.txt +4 -0
- data/lib/cap_console.rb +1 -1
- data/lib/cap_console/recipes.rb +20 -13
- metadata +23 -1
- metadata.gz.sig +1 -0
data.tar.gz.sig
ADDED
data/History.txt
CHANGED
data/lib/cap_console.rb
CHANGED
data/lib/cap_console/recipes.rb
CHANGED
@@ -7,17 +7,24 @@ module CapConsole
|
|
7
7
|
Capistrano.configuration( :must_exist )
|
8
8
|
|
9
9
|
configuration.load do
|
10
|
-
namespace :
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
10
|
+
namespace :remote do
|
11
|
+
desc "remote script/console"
|
12
|
+
task :console, :roles => :app do
|
13
|
+
input = ''
|
14
|
+
# for some bizarre reason I'm getting nil for ( defined? stage ) even
|
15
|
+
# when it's defined - can you override the defined? operator? Anyway,
|
16
|
+
# so the simplest thing to do was to rescue the NameError
|
17
|
+
begin
|
18
|
+
env = stage
|
19
|
+
rescue NameError
|
20
|
+
env = ENV['RAILS_ENV']
|
21
|
+
end
|
22
|
+
run "cd #{current_path} && ./script/console #{env}" do |channel, stream, data|
|
23
|
+
next if data.chomp == input.chomp || data.chomp == ''
|
24
|
+
print data
|
25
|
+
channel.send_data(input = $stdin.gets) if data =~ /^(>|\?)>/
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
23
30
|
end
|
metadata
CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
|
|
3
3
|
specification_version: 1
|
4
4
|
name: CapConsole
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.0.
|
6
|
+
version: 0.0.2
|
7
7
|
date: 2007-12-20 00:00:00 +11:00
|
8
8
|
summary: Cap task to remotely open a rails console on your production host
|
9
9
|
require_paths:
|
@@ -25,6 +25,28 @@ required_ruby_version: !ruby/object:Gem::Version::Requirement
|
|
25
25
|
platform: ruby
|
26
26
|
signing_key:
|
27
27
|
cert_chain:
|
28
|
+
- |
|
29
|
+
-----BEGIN CERTIFICATE-----
|
30
|
+
MIIDMDCCAhigAwIBAgIBADANBgkqhkiG9w0BAQUFADA+MRAwDgYDVQQDDAdzdXBw
|
31
|
+
b3J0MRYwFAYKCZImiZPyLGQBGRYGaGFuZGxlMRIwEAYKCZImiZPyLGQBGRYCaXQw
|
32
|
+
HhcNMDcxMjE5MjMxNTUyWhcNMDgxMjE4MjMxNTUyWjA+MRAwDgYDVQQDDAdzdXBw
|
33
|
+
b3J0MRYwFAYKCZImiZPyLGQBGRYGaGFuZGxlMRIwEAYKCZImiZPyLGQBGRYCaXQw
|
34
|
+
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC87/qg7pmvMpWaJKPCF9nO
|
35
|
+
m0EFyG6dXR06CKvBNIXmgSGO/2nqvEKK4b/w3Kphkgj3g7oNuImyj1ny0Ttr9Ams
|
36
|
+
KgqPq7yUElNpW/HW1OEljYxhRPiTnBK+GIYcLKMYbkjY4K7pG7/dbzfK/7oIvg35
|
37
|
+
IcwF7809RJrkLhB4w0/TANe/76V1+uAOAjDkwjH58qOOBa7NTxfidRR/PsMPyJVj
|
38
|
+
zUgfbQMEBkg28+iBO3xdnaSSDwShzJSF2OekyxmZapbOgO4vcCYRqRucic/A2r1r
|
39
|
+
xBsomGHFOP/44v4x68tcsxJU8FKvtGFzwiNZxfI6LSSDHp9IJz9SyUopdrOdlW4z
|
40
|
+
AgMBAAGjOTA3MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBR40kQa
|
41
|
+
MxZN569ymV/HrdKLw/vdfTANBgkqhkiG9w0BAQUFAAOCAQEAj7x20tsSogwdCmjP
|
42
|
+
4tC9aCRWfXcuVJskQixQg+DlG1uxBvwvI/iBk/FUrWjnfrS3WNqomNv4zOcgLY8n
|
43
|
+
zSHdjb5ql87s5p7JeeOZ9OwMiVlmXWG7ygAsh8wWYRJk3p0WZKdy4jStv2GPeMYl
|
44
|
+
5tGj8CK8HRPcj1JRFWR5oa5Cng2kmahF8p8tLDL6XALD8QypQzh/JwfP4cEVfNpV
|
45
|
+
l3NbioUFPhj1jCa57LGXXJYMzn6F6jcxL35TTVwB6oJ+oVg+BYGeFHZAilCM6Z3C
|
46
|
+
eIj8H/q+gicZ3Wf1IaHwIBzHXnjAEFaXooYoW6Bm4oJ2igx2D8NxBa7xXin0z5F3
|
47
|
+
fBxbZg==
|
48
|
+
-----END CERTIFICATE-----
|
49
|
+
|
28
50
|
post_install_message:
|
29
51
|
authors:
|
30
52
|
- HandleIT
|
metadata.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
IO�E���
|