obbistrano 1.1.52 → 1.1.53
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/lib/obbistrano_tasks.rb +15 -0
- data/obbistrano.gemspec +1 -1
- metadata +4 -4
data/lib/obbistrano_tasks.rb
CHANGED
|
@@ -339,6 +339,21 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
339
339
|
end
|
|
340
340
|
end
|
|
341
341
|
|
|
342
|
+
desc "Detects what flavour of linux is being used"
|
|
343
|
+
task :detect_os :roles =>[:host] do
|
|
344
|
+
begin
|
|
345
|
+
run "cat /etc/fedora-release"
|
|
346
|
+
set :os_ver, "fedora"
|
|
347
|
+
rescue
|
|
348
|
+
run "cat /etc/debian_version"
|
|
349
|
+
set :os_ver, "ubuntu"
|
|
350
|
+
rescue
|
|
351
|
+
puts "*** Operating System could not be detected or is not supported" if !defined? "#{os_ver}"
|
|
352
|
+
exit if !defined? "#{os_ver}"
|
|
353
|
+
end
|
|
354
|
+
|
|
355
|
+
end
|
|
356
|
+
|
|
342
357
|
|
|
343
358
|
# =============================================================================
|
|
344
359
|
# +MIGRATING+ APPLICATIONS
|
data/obbistrano.gemspec
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{obbistrano}
|
|
5
|
-
s.version = "1.1.
|
|
5
|
+
s.version = "1.1.53"
|
|
6
6
|
s.authors = ["Ross Riley", "One Black Bear"]
|
|
7
7
|
s.date = Time.now
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: obbistrano
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 121
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 1.1.
|
|
9
|
+
- 53
|
|
10
|
+
version: 1.1.53
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Ross Riley
|
|
@@ -16,7 +16,7 @@ autorequire:
|
|
|
16
16
|
bindir: bin
|
|
17
17
|
cert_chain: []
|
|
18
18
|
|
|
19
|
-
date: 2010-
|
|
19
|
+
date: 2010-12-06 00:00:00 +00:00
|
|
20
20
|
default_executable:
|
|
21
21
|
dependencies:
|
|
22
22
|
- !ruby/object:Gem::Dependency
|