capistrano-af83 0.3.2 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,28 @@
1
+ # encoding: UTF-8
2
+ depend :remote, :command, "bundle"
3
+
4
+ namespace :faye do
5
+ desc 'Start faye'
6
+ task :start, :roles => :app do
7
+ run "cd #{current_path} && #{bundle_cmd} exec thin start -R faye.ru -C #{shared_path}/faye.yml"
8
+ end
9
+
10
+ desc 'Stop faye'
11
+ task :stop, :rules => :app do
12
+ run "cd #{current_path} && #{bundle_cmd} exec thin stop -R faye.ru -C #{shared_path}/faye.yml"
13
+ end
14
+
15
+ desc 'Restart faye'
16
+ task :restart, :roles => :app, :except => { :no_release => true } do
17
+ run "cd #{current_path} && #{bundle_cmd} exec thin restart -R faye.ru -C #{shared_path}/faye.yml"
18
+ end
19
+ end
20
+
21
+ namespace :faye do
22
+ desc "Copy faye config"
23
+ task :copy do
24
+ upload "config/faye/#{rails_env}.yml", "#{shared_path}/faye.yml", :via => :scp
25
+ end
26
+ end
27
+
28
+ before "deploy:restart", "faye:copy"
@@ -5,6 +5,11 @@ namespace :js do
5
5
  task :create_routes do
6
6
  run "cd #{release_path} && #{bundle_cmd} exec rake js:routes"
7
7
  end
8
+
9
+ desc "Download JS/CSS assets using bower"
10
+ task :bower_install do
11
+ run "cd #{release_path} && bower install"
12
+ end
8
13
  end
9
14
 
10
15
  after "deploy:update", "js:create_routes"
@@ -2,7 +2,8 @@
2
2
 
3
3
  # By default, we have 3 stages (dev, staging and production)
4
4
  # and we detect other stages if they have a file in confif/deploy.
5
- default_stages = [:dev, :staging, :prod]
5
+ set :default_stage, :dev
6
+ default_stages = [default_stage, :staging, :prod]
6
7
  location = fetch(:stage_dir, "config/deploy")
7
8
  unless exists?(:stages)
8
9
  set :stages, Dir["#{location}/*.rb"].map { |f| File.basename(f, ".rb") }
@@ -50,8 +51,8 @@ namespace :multistage do
50
51
  desc "[internal] Ensure that a stage has been selected."
51
52
  task :ensure do
52
53
  if !exists?(:stage)
53
- logger.important "Defaulting to `dev'"
54
- find_and_execute_task(:dev)
54
+ logger.important "Defaulting to `#{default_stage}'"
55
+ find_and_execute_task(default_stage)
55
56
  end
56
57
  end
57
58
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module AF83
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,40 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-af83
3
3
  version: !ruby/object:Gem::Version
4
+ version: 0.3.8
4
5
  prerelease:
5
- version: 0.3.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Bruno Michel
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-24 00:00:00.000000000 Z
12
+ date: 2013-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- type: :runtime
15
+ name: capistrano
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 2.13.5
21
+ version: '2.14'
22
+ type: :runtime
22
23
  prerelease: false
23
24
  version_requirements: !ruby/object:Gem::Requirement
24
25
  none: false
25
26
  requirements:
26
27
  - - ~>
27
28
  - !ruby/object:Gem::Version
28
- version: 2.13.5
29
- name: capistrano
29
+ version: '2.14'
30
30
  - !ruby/object:Gem::Dependency
31
- type: :runtime
31
+ name: capistrano-notification
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  none: false
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
37
  version: '0.1'
38
+ type: :runtime
38
39
  prerelease: false
39
40
  version_requirements: !ruby/object:Gem::Requirement
40
41
  none: false
@@ -42,15 +43,15 @@ dependencies:
42
43
  - - ~>
43
44
  - !ruby/object:Gem::Version
44
45
  version: '0.1'
45
- name: capistrano-notification
46
46
  - !ruby/object:Gem::Dependency
47
- type: :runtime
47
+ name: capistrano-maintenance
48
48
  requirement: !ruby/object:Gem::Requirement
49
49
  none: false
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  version: 0.0.2
54
+ type: :runtime
54
55
  prerelease: false
55
56
  version_requirements: !ruby/object:Gem::Requirement
56
57
  none: false
@@ -58,15 +59,15 @@ dependencies:
58
59
  - - ~>
59
60
  - !ruby/object:Gem::Version
60
61
  version: 0.0.2
61
- name: capistrano-maintenance
62
62
  - !ruby/object:Gem::Dependency
63
- type: :runtime
63
+ name: shout-bot
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  none: false
66
66
  requirements:
67
67
  - - '='
68
68
  - !ruby/object:Gem::Version
69
69
  version: 0.0.4
70
+ type: :runtime
70
71
  prerelease: false
71
72
  version_requirements: !ruby/object:Gem::Requirement
72
73
  none: false
@@ -74,15 +75,15 @@ dependencies:
74
75
  - - '='
75
76
  - !ruby/object:Gem::Version
76
77
  version: 0.0.4
77
- name: shout-bot
78
78
  - !ruby/object:Gem::Dependency
79
- type: :runtime
79
+ name: sushi
80
80
  requirement: !ruby/object:Gem::Requirement
81
81
  none: false
82
82
  requirements:
83
83
  - - ~>
84
84
  - !ruby/object:Gem::Version
85
85
  version: 0.0.2
86
+ type: :runtime
86
87
  prerelease: false
87
88
  version_requirements: !ruby/object:Gem::Requirement
88
89
  none: false
@@ -90,7 +91,6 @@ dependencies:
90
91
  - - ~>
91
92
  - !ruby/object:Gem::Version
92
93
  version: 0.0.2
93
- name: sushi
94
94
  description: Capistrano recipes for af83
95
95
  email: bruno.michel@af83.com
96
96
  executables: []
@@ -107,6 +107,7 @@ files:
107
107
  - lib/capistrano/af83/dragonfly.rb
108
108
  - lib/capistrano/af83/es.rb
109
109
  - lib/capistrano/af83/extensions.rb
110
+ - lib/capistrano/af83/faye.rb
110
111
  - lib/capistrano/af83/info.rb
111
112
  - lib/capistrano/af83/irc_notification.rb
112
113
  - lib/capistrano/af83/js_routes.rb
@@ -137,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
138
  version: '0'
138
139
  requirements: []
139
140
  rubyforge_project:
140
- rubygems_version: 1.8.24
141
+ rubygems_version: 1.8.23
141
142
  signing_key:
142
143
  specification_version: 3
143
144
  summary: Capistrano recipes for af83