capistrano_banner 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,20 +18,22 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- First, you need create your application banner in config/banner.txt
21
+ First, create your application banner in config/banner.txt.
22
22
 
23
- like this:
23
+ Like this:
24
24
 
25
25
  ```zsh
26
26
  $ gem install artii
27
- $ rehash
28
27
  $ artii --font=banner3-D yourapp > config/banner.txt
29
28
  ```
30
29
 
30
+ (about artii: https://github.com/miketierney/artii )
31
+
31
32
  Then, call banner method in the bottom of your deploy.rb
32
33
 
33
34
  ```ruby
34
- set :rails_env, 'production'
35
+ require 'capistrano_banner' # if you wouldn't use bundle exec
36
+ set :rails_env, 'production' # rails_env or rack_env must be fixed before call banner
35
37
  set :deploy_to, '/u/apps/yourapp'
36
38
 
37
39
  # :
@@ -43,7 +45,7 @@ banner
43
45
  Let's execute cap!
44
46
 
45
47
  ```
46
- $ cap shell (reward-server)-(master5)-(aradmin)
48
+ $ cap shell
47
49
  '##:::'##::'#######::'##::::'##:'########:::::'###::::'########::'########::
48
50
  . ##:'##::'##.... ##: ##:::: ##: ##.... ##:::'## ##::: ##.... ##: ##.... ##:
49
51
  :. ####::: ##:::: ##: ##:::: ##: ##:::: ##::'##:. ##:: ##:::: ##: ##:::: ##:
@@ -56,17 +58,24 @@ $ cap shell
56
58
  This is production environment. Are you ready? (y/N) >
57
59
  ```
58
60
 
59
- If production environment, pause and wait your input.
61
+ In production environment, capistarano pauses and waits your input.
60
62
 
61
63
  ## Options
62
64
 
63
65
  banner method can take options:
64
66
 
65
67
  - `:path => 'filepath'` path to your favor banner file
66
- - `:color => :colorname'` banner color
68
+ - `:color => :colorname'` banner color (e.g. :red, :green and :blue ... see https://github.com/flori/term-ansicolor )
67
69
  - `:pause => true` anyway pause
68
70
  - `:force => true` don't pause even if production env
69
71
 
72
+
73
+ ## Etc
74
+
75
+ ### multistage
76
+
77
+ If you use capistrano/ext/multistage, you need write `banner` method call to *all* stages. capistrano_banner requires to set :rails_env or :rack_env before `banner`.
78
+
70
79
  ## Contributing
71
80
 
72
81
  1. Fork it
@@ -17,6 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
- gem.add_dependency 'capistrano'
21
- gem.add_dependency 'term-ansicolor'
20
+ gem.add_runtime_dependency 'capistrano'
21
+ gem.add_runtime_dependency 'term-ansicolor'
22
+ gem.add_runtime_dependency 'thor'
22
23
  end
@@ -51,7 +51,7 @@ module CapistranoBanner
51
51
  module IntegrationMethods
52
52
  def banner(options = {})
53
53
  path = self[:banner_path] || "./config/banner.txt"
54
- env = self[:rack_env] || self[:rails_env] || (raise "rails_env or rack_env is required.") # FIXME: or somthing else?
54
+ env = self[:rack_env] || self[:rails_env] || (raise "rails_env or rack_env is required.") # FIXME: or anything else?
55
55
 
56
56
  Base.new(env, path).print_banner(options)
57
57
  end
@@ -1,3 +1,3 @@
1
1
  module CapistranoBanner
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_banner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
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: 2012-10-23 00:00:00.000000000 Z
12
+ date: 2012-12-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: thor
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
46
62
  description: capistrano application banner
47
63
  email:
48
64
  - holysugar@gmail.com
@@ -84,3 +100,4 @@ signing_key:
84
100
  specification_version: 3
85
101
  summary: provids banner method to display application banner
86
102
  test_files: []
103
+ has_rdoc: