capistrano-demo 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/capistrano-demo.gemspec +1 -1
- data/lib/capistrano/tasks/demo.rake +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b2db77d9d2f2b9366d65b0ad66c6ad2bc6c7fde
|
4
|
+
data.tar.gz: bd1b74ba7c2e27940286281c06b3bb4baa744598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0970b6a7d3ae13250d30c158f3b1b91f750a6150900fe05d1b4f4b27e12ff6e2f23823d08d1d27c623228f1b6955f0ebaa427dadf69eaae41ee633f1fa451bac
|
7
|
+
data.tar.gz: b027a1bc79786dc97484bdd46375a2a7b0cb5bb2b30cff474968ec478b8c826b9737225d02a8451fbe4908cf7adb049bea149b59de4e57fb5214ff3cd7e49a6a
|
data/capistrano-demo.gemspec
CHANGED
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |spec|
|
5
5
|
spec.name = 'capistrano-demo'
|
6
|
-
spec.version = '0.0.
|
6
|
+
spec.version = '0.0.6'
|
7
7
|
spec.authors = ['Arthur Shcheglov (fc_arny)']
|
8
8
|
spec.email = ['arthur.shcheglov@gmail.com']
|
9
9
|
spec.summary = %q{Create demo-host by branch name}
|
@@ -2,11 +2,12 @@ namespace :load do
|
|
2
2
|
task :defaults do
|
3
3
|
set :demo_role, :all
|
4
4
|
|
5
|
-
set :demo_db, demo_default_db
|
6
5
|
set :demo_branch, demo_branch
|
7
6
|
|
7
|
+
set :demo_db, -> { demo_default_db }
|
8
8
|
set :demo_dir, -> { demo_dir }
|
9
|
-
|
9
|
+
|
10
|
+
set :demo_host, -> { fetch(:application) }
|
10
11
|
|
11
12
|
set :demo_restart_cmd, -> { raise 'You mast specify "demo_restart_cmd" proc' }
|
12
13
|
|
@@ -32,7 +33,7 @@ namespace :demo do
|
|
32
33
|
|
33
34
|
invoke 'demo:restart'
|
34
35
|
|
35
|
-
msg = "* Demo host created => http://#{demo_url}
|
36
|
+
msg = "* Demo host created => http://#{demo_url}".colorize(:light_green)
|
36
37
|
puts '*' * msg.length, msg, '*' * msg.length
|
37
38
|
end
|
38
39
|
|