kapify 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -46,6 +46,7 @@ Also contains several helpers (some of them are based on Ryan Bate's screencast)
46
46
  ```ruby
47
47
  as_user
48
48
  close_session
49
+ run_interactively
49
50
  set_default
50
51
  template
51
52
 
data/lib/kapify/base.rb CHANGED
@@ -20,6 +20,11 @@ Capistrano::Configuration.instance.load do
20
20
  end
21
21
  end
22
22
 
23
+ def run_interactively(command, server=nil)
24
+ server ||= find_servers_for_task(current_task).first
25
+ exec %Q(ssh #{user}@#{server.host} -p #{port} -t '#{command}')
26
+ end
27
+
23
28
  set_default(:templates_path, "#{Dir.pwd}/config/deploy/templates")
24
29
 
25
30
  def template(from, to)
@@ -1,3 +1,3 @@
1
1
  module Kapify
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kapify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  segments:
107
107
  - 0
108
- hash: 1911853121235537074
108
+ hash: -2772859173059798326
109
109
  none: false
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: 1911853121235537074
117
+ hash: -2772859173059798326
118
118
  none: false
119
119
  requirements: []
120
120
  rubyforge_project: