Class: Pomodoro
- Inherits:
-
Thor
- Object
- Thor
- Pomodoro
- Includes:
- Mixin::Audio, Mixin::Config, Mixin::Logger, Mixin::Network, Thor::Actions
- Defined in:
- lib/fox/interface/thor/pomodoro.rb
Instance Method Summary collapse
Methods included from Mixin::Audio
#initialize, #play_local, #play_remote
Methods included from Mixin::Network
#download, #initialize, #online?
Methods included from Mixin::Config
Methods included from Mixin::Logger
Instance Method Details
#default ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/fox/interface/thor/pomodoro.rb', line 30 def default @logger. :debug, 'Running sanity check for Pomodoro task' sanity_check if( [:stream] ) @logger. :info, 'Streaming from Remote via github.com raw (use CTRL+C to abort)' @logger. :warning, 'Please do not hammer github.com, download if possible instead' play_remote( @urls.pomodoro.send( @config.pomodoro.default ) ) else @logger. :info, 'Playing local file (use CTRL+C to abort)' play_local( @assets.pomodoro.send( @config.pomodoro.default ) ) end end |
#short ⇒ Object
51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/fox/interface/thor/pomodoro.rb', line 51 def short @logger. :debug, 'Running sanity check for Pomodoro task' sanity_check if( [:stream] ) @logger. :info, 'Streaming from Remote via github.com raw (use CTRL+C to abort)' @logger. :warning, 'Please do not hammer github.com, download if possible instead' play_remote( @urls.pomodoro.short ) else @logger. :info, 'Playing local file (use CTRL+C to abort)' play_local( @assets.pomodoro.short ) end end |