capistrano_rails_console 0.1.0 → 0.2.0

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.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # CapistranoRailsConsole
1
+ # Capistrano Rails Console
2
2
 
3
3
  Open a rails console the first app server.
4
4
 
@@ -1,10 +1,11 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'capistrano_rails_console'
4
5
 
5
6
  Gem::Specification.new do |gem|
6
7
  gem.name = "capistrano_rails_console"
7
- gem.version = "0.1.0"
8
+ gem.version = CapistranoRailsConsole::VERSION
8
9
  gem.authors = ["Timo Schilling"]
9
10
  gem.email = ["timo@schilling.io"]
10
11
  gem.description = %q{Open a rails console the first app server.}
@@ -0,0 +1,11 @@
1
+ require "capistrano/configuration"
2
+
3
+ Capistrano::Configuration.instance(:must_exist).load do
4
+ namespace :rails do
5
+ desc "Open a rails console the first app server"
6
+ task :console, :roles => :app do
7
+ hostname = find_servers_for_task(current_task).first
8
+ exec "ssh -l #{user} #{hostname} -p #{port} -t 'cd #{current_path} && rails c #{rails_env}'"
9
+ end
10
+ end
11
+ end
@@ -1,11 +1,3 @@
1
- require "capistrano/configuration"
2
-
3
- Capistrano::Configuration.instance(:must_exist).load do
4
- namespace :rails do
5
- desc "Open a rails console the first app server"
6
- task :console, :roles => :app do
7
- hostname = find_servers_for_task(current_task).first
8
- exec "ssh -l #{user} #{hostname} -p #{port} -t 'cd #{current_path} && rails c #{rails_env}'"
9
- end
10
- end
1
+ module CapistranoRailsConsole
2
+ VERSION = "0.2.0"
11
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: capistrano_rails_console
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.0
5
+ version: 0.2.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Timo Schilling
@@ -56,6 +56,7 @@ files:
56
56
  - README.md
57
57
  - Rakefile
58
58
  - capistrano_rails_console.gemspec
59
+ - lib/capistrano/recipes.rb
59
60
  - lib/capistrano_rails_console.rb
60
61
  homepage: http://github.com/timoschilling/capistrano_rails_console
61
62
  licenses: []
@@ -70,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
71
  version: '0'
71
72
  segments:
72
73
  - 0
73
- hash: 4168494660587553424
74
+ hash: -1372681409953259346
74
75
  none: false
75
76
  required_rubygems_version: !ruby/object:Gem::Requirement
76
77
  requirements:
@@ -79,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
80
  version: '0'
80
81
  segments:
81
82
  - 0
82
- hash: 4168494660587553424
83
+ hash: -1372681409953259346
83
84
  none: false
84
85
  requirements: []
85
86
  rubyforge_project: