class Nehm::DlCommand
Public Class Methods
new()
click to toggle source
Calls superclass method
Nehm::Command::new
# File lib/nehm/commands/dl_command.rb, line 4 def initialize super add_option(:from, 'from PERMALINK', 'Get track(s) from user with PERMALINK') add_option(:to, 'to PATH', 'Download track(s) to PATH') end
Public Instance Methods
arguments()
click to toggle source
# File lib/nehm/commands/dl_command.rb, line 22 def arguments { 'post' => 'Download last post (track or repost) from your profile', 'NUMBER posts' => 'Download last NUMBER posts from your profile', 'like' => 'Download your last like', 'NUMBER likes' => 'Download your last NUMBER likes', 'URL' => 'Download track from entered URL' } end
execute()
click to toggle source
# File lib/nehm/commands/dl_command.rb, line 14 def execute @options[:dl] = 'yes' get_cmd = CommandManager.command_instance('get') get_cmd.options = @options get_cmd.execute end
program_name()
click to toggle source
# File lib/nehm/commands/dl_command.rb, line 30 def program_name 'nehm dl' end
summary()
click to toggle source
# File lib/nehm/commands/dl_command.rb, line 34 def summary 'Download and set tags any track from SoundCloud' end
usage()
click to toggle source
# File lib/nehm/commands/dl_command.rb, line 38 def usage "#{program_name} ARGUMENT [OPTIONS]" end