CapConsole 0.0.1 → 0.0.2

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.
@@ -0,0 +1,4 @@
1
+ �
2
+ ����\��(۴Uc�~ �Sj.ؠ�$� w��$є��\�p �d��,�+���5˞O�Kd��o��p*�ᰘ�H��S+O���r����E����gT�`6�� ��Ũ�>���)�|�:O��~/
3
+ 3��{?���mE�8���"�*!J ��Ӿi�J���ZPO�(sqO]s W�4�U���9�������#
4
+ �tB�C=JU�z~>rJA��$�
@@ -1,3 +1,7 @@
1
+ == 0.0.2 / 2007-12-20
2
+
3
+ * Fixed multistage stuff
4
+
1
5
  == 0.0.1 / 2007-12-20
2
6
 
3
7
  * First release
@@ -1,3 +1,3 @@
1
1
  module CapConsole
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
@@ -7,17 +7,24 @@ module CapConsole
7
7
  Capistrano.configuration( :must_exist )
8
8
 
9
9
  configuration.load do
10
- namespace :console do
11
- desc "remote script/console"
12
- task :shell, :roles => :app do
13
- input = ''
14
- ENV['RAILS_ENV'] = stage if stage # use multistage if it exists
15
- run "cd #{current_path} && ./script/console #{ENV['RAILS_ENV']}" do |channel, stream, data|
16
- next if data.chomp == input.chomp || data.chomp == ''
17
- print data
18
- channel.send_data(input = $stdin.gets) if data =~ /^(>|\?)>/
19
- end
20
- end
21
- end
22
- end
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.1
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
@@ -0,0 +1 @@
1
+ IO�E���