capistrano-jukebox 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/capistrano/jukebox.rb +7 -1
- data/lib/capistrano/jukebox/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
data/lib/capistrano/jukebox.rb
CHANGED
@@ -8,6 +8,8 @@ module Capistrano::Jukebox
|
|
8
8
|
|
9
9
|
# Start playing music before :deploy
|
10
10
|
on :before, :only => :deploy do
|
11
|
+
file = configuration[:file]
|
12
|
+
file = jeopardy_song if file.nil?
|
11
13
|
start_playing(file)
|
12
14
|
end
|
13
15
|
|
@@ -21,7 +23,7 @@ module Capistrano::Jukebox
|
|
21
23
|
desc 'Start playing music on the jukebox'
|
22
24
|
task :play, :roles => :app, :except => {:no_release => true} do
|
23
25
|
file = configuration[:file]
|
24
|
-
file =
|
26
|
+
file = jeopardy_song if file.nil?
|
25
27
|
start_playing(file)
|
26
28
|
end
|
27
29
|
|
@@ -50,6 +52,10 @@ module Capistrano::Jukebox
|
|
50
52
|
end
|
51
53
|
end
|
52
54
|
|
55
|
+
def jeopardy_song
|
56
|
+
File.expand_path('../../../music/jeopardy_thinking.mp3', __FILE__)
|
57
|
+
end
|
58
|
+
|
53
59
|
end
|
54
60
|
|
55
61
|
end
|