capistrano-platform-recognizer 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,9 +18,9 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- load capistrano-rails-dbinit in your config/deploy.rb:
21
+ load capistrano-platform-recognizer in your config/deploy.rb:
22
22
 
23
- require 'capistrano-rails-dbinit'
23
+ require 'capistrano-platform-recognizer'
24
24
 
25
25
  And then, capistrano-platform-recognizer runs automatically and
26
26
  set platform informations to each hosts.
@@ -30,14 +30,14 @@ Capistrano::Configuration.instance.load do
30
30
 
31
31
  task :detect do
32
32
  find_servers_for_task(current_task).each do |server|
33
- osname = capture("uname -s", :hosts => server).chomp
33
+ osname = capture("uname -s", :hosts => server, :shell => 'bash').chomp
34
34
  server.options[:osname] = osname.downcase.to_sym
35
35
 
36
36
  if server.options[:osname] == :linux
37
- issue = capture("cat /etc/issue || lsb_release -d -s", :hosts => server).chomp
37
+ issue = capture("cat /etc/issue || lsb_release -d -s", :hosts => server, :shell => 'bash').chomp
38
38
  server.options[:distro] = guess_distro(issue)
39
39
 
40
- machine_info = capture("uname -m", :hosts => server).chomp
40
+ machine_info = capture("uname -m", :hosts => server, :shell => 'bash').chomp
41
41
  server.options[:cpu] = guess_cpu(machine_info)
42
42
  server.options[:arch] = guess_cpu(machine_info)
43
43
  end
@@ -1,7 +1,7 @@
1
1
  module Capistrano
2
2
  module Platform
3
3
  module Recognizer
4
- VERSION = "0.0.2"
4
+ VERSION = "0.1.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-platform-recognizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
12
+ date: 2013-04-21 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Capistrano task to recognize platform of target hosts
15
15
  email:
@@ -51,4 +51,3 @@ signing_key:
51
51
  specification_version: 3
52
52
  summary: Capistrano task to recognize platform of target hosts
53
53
  test_files: []
54
- has_rdoc: