factorylabs-fdlcap 0.3.26 → 0.3.27

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.26
1
+ 0.3.27
data/fdlcap.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fdlcap}
8
- s.version = "0.3.26"
8
+ s.version = "0.3.27"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Factory Design Labs"]
@@ -3,13 +3,24 @@ Capistrano::Configuration.instance(:must_exist).load do
3
3
  role = (ENV['ROLE'] || :app).to_sym
4
4
  servers = find_servers :roles => role
5
5
  server = servers.first
6
- ssh_cmd = (File.exists?('/usr/bin/ssh-forever') ? '/usr/bin/ssh-forever' : '/usr/bin/ssh')
6
+ ssh_cmd = fetch(:ssh_cmd, '/usr/bin/ssh')
7
7
  if server
8
8
  `echo '#{password}' | /usr/bin/pbcopy`
9
9
  exec "#{ssh_cmd} #{user}@#{server.host} -p #{server.port || 22} "
10
10
  end
11
11
  end
12
12
 
13
+ task :ssh_forever do
14
+ ssh_forever_binary = '/usr/bin/ssh-forever'
15
+ if File.exists?(ssh_forever_binary)
16
+ set :ssh_cmd, ssh_forever_binary
17
+ ssh
18
+ else
19
+ puts "#{ssh_forever_binary} not found - do you have the ssh-forever gem installed?"
20
+ exit 1
21
+ end
22
+ end
23
+
13
24
  #namespace :ssh do
14
25
  task :tunnel do
15
26
  remote_port = ENV['REMOTE_PORT'] || 80
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: factorylabs-fdlcap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.26
4
+ version: 0.3.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Factory Design Labs