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 CHANGED
@@ -37,7 +37,7 @@ For playing your own file
37
37
  cap jukebox:play -s file=http://domain.com/my_music.mp3
38
38
 
39
39
  Dependencies
40
- ============
40
+ ------------
41
41
 
42
42
  MPlayer (http://www.mplayerhq.hu/design7/info.html)
43
43
 
@@ -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 = File.expand_path('../../../music/jeopardy_thinking.mp3', __FILE__) if file.nil?
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
@@ -1,3 +1,3 @@
1
1
  module CapistranoJukebox
2
- VERSION = "0.0.1".freeze
2
+ VERSION = "0.0.2".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-jukebox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: