capistrano-offroad 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,4 +23,45 @@ class Capistrano::Configuration
23
23
  set sym do Capistrano::CLI.ui.ask question end
24
24
  end
25
25
  end
26
+
27
+ def delayed_warning(short, long=nil)
28
+ @_offroad_util_warnings ||= []
29
+ @_offroad_util_warnings.push short
30
+ puts <<EOF
31
+
32
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
33
+ BIG FAT WARNING:
34
+ EOF
35
+ puts short
36
+ puts long if long
37
+ puts <<EOF
38
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
39
+
40
+ EOF
41
+ end
42
+
43
+ def _offroad_emit_warnings()
44
+ if @_offroad_util_warnings
45
+ puts <<-"EOF"
46
+
47
+ !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
48
+
49
+ #{@_offroad_util_warnings.length} WARNING(S) LOGGED
50
+ READ VERY CAREFULLY, FOR I SHALL WRITE THIS ONLY ONCE
51
+ SCROLL UP FOR DETAILS
52
+
53
+ EOF
54
+ @_offroad_util_warnings.each { |w| puts " - #{w}" }
55
+ puts <<EOF
56
+
57
+ YOU HAVE BEEN WARNED
58
+ EOF
59
+ end
60
+ end
61
+ end
62
+
63
+ Capistrano::Configuration.instance(:must_exist).load do
64
+ on :exit do
65
+ _offroad_emit_warnings
66
+ end
26
67
  end
@@ -2,7 +2,7 @@ module CapistranoOffroad
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- TINY = 1
5
+ TINY = 2
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
 
8
8
  def VERSION.require_version(major, minor=0, tiny=0)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-offroad
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Maciej Pasternacki
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-27 00:00:00 +02:00
18
+ date: 2011-04-19 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
90
90
  requirements: []
91
91
 
92
92
  rubyforge_project:
93
- rubygems_version: 1.3.7
93
+ rubygems_version: 1.5.0
94
94
  signing_key:
95
95
  specification_version: 3
96
96
  summary: Capistrano add-ons and recipes for non-rails projects