capistrano-friday 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c4c712d966dfc1649a3105ac0f106da90df1dc2
4
- data.tar.gz: f629263f22ac3856a6dbc979d1e86a36b3ac3568
3
+ metadata.gz: ce68b5a37fa1d9f1ac2c6fd31ef6b4b59b702d3f
4
+ data.tar.gz: 162dd9a70395f243dabf9e4fc962fea2f535a096
5
5
  SHA512:
6
- metadata.gz: fa42c0c6a17f4caf36bf5f58ebd64e5f6a0c3280b6eacfa03ed028bc227887a01ef27e416d807b2a61e887805be26713161522b4270b63bab45e898901da8628
7
- data.tar.gz: ae398f88d708cf739caad5a79c75355a6fcf6708f7307852a6d92dfbef2d9e1e8ce53f6b8f6e88ad8209b82ff21fcddd9cccee241a1a81481ad8edb05fc880da
6
+ metadata.gz: e6c1f4e664700a22a35806a8a707f465a3381628b2024853833aa2a56fbd2c5bf9eeacfb8094043ff7bfdf5d72cd6f0dc9835a40cda5da6ef37b227b711be87f
7
+ data.tar.gz: dc4934a9573da63c4fed1ed6978b5d1ec242b3615d071d8ef3b00bb6f3eb8c7d5ca8862d7d85b744c1512cf76f3d5f0007c6c2a81badd4696cac5f06260964d9
data/README.md CHANGED
@@ -52,6 +52,18 @@ You also can change default MOTD (default is `:base_jumper`):
52
52
  set :friday_motd, :flipping_table
53
53
  ```
54
54
 
55
+ Ignore stages, so not as to punish the testing of code:
56
+
57
+ ```ruby
58
+ set :friday_ignored_stages, :staging
59
+ # or
60
+ set :friday_ignored_stages, [:staging, :testing]
61
+ # or completely remove
62
+ set :friday_ignored_stages, nil
63
+ ```
64
+
65
+ By default, `:staging` is already ignored.
66
+
55
67
  **TODO:** need to add many more MOTDs!
56
68
 
57
69
  ## Contributing
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "capistrano-friday"
7
- spec.version = '0.0.2'
7
+ spec.version = '0.1.0'
8
8
  spec.authors = ["Vladimir Kochnev"]
9
9
  spec.email = ["hashtable@yandex.ru"]
10
10
  spec.summary = %q{You better stab yourself if you deploy on friday!}
@@ -21,7 +21,10 @@ namespace :friday do
21
21
  }
22
22
 
23
23
  task :check do
24
- invoke 'friday:good_luck' if Time.now.friday?
24
+ ignored_stages = Array(fetch :friday_ignored_stages)
25
+ unless ignored_stages.include?(fetch(:stage))
26
+ invoke 'friday:good_luck' if Time.now.friday?
27
+ end
25
28
  end
26
29
 
27
30
  task :good_luck do
@@ -40,5 +43,6 @@ namespace :load do
40
43
  task :defaults do
41
44
  set :friday_motd, :base_jumper
42
45
  set :friday_disable_deploy, false
46
+ set :friday_ignored_stages, :staging
43
47
  end
44
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-friday
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladimir Kochnev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-24 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano
@@ -79,3 +79,4 @@ signing_key:
79
79
  specification_version: 4
80
80
  summary: You better stab yourself if you deploy on friday!
81
81
  test_files: []
82
+ has_rdoc: