Class: CmdTools::Runner

Inherits:
Thor
  • Object
show all
Extended by:
RubyPatch::AutoLoad
Defined in:
lib/cmd_tools/runner.rb

Instance Method Summary collapse

Instance Method Details

#backup(*files) ⇒ Object



8
9
10
# File 'lib/cmd_tools/runner.rb', line 8

def backup(*files)
  puts ::CmdTools::Command::Backup.run(*files).join("\t")
end

#emacs_launch(*files) ⇒ Object



28
29
30
31
# File 'lib/cmd_tools/runner.rb', line 28

def emacs_launch(*files)
  mode = options['mode'].to_sym
  ::CmdTools::Command::EmacsLaunch.run(mode, *files)
end

#emacs_stopObject



34
35
36
# File 'lib/cmd_tools/runner.rb', line 34

def emacs_stop
  ::CmdTools::Command::EmacsLaunch.stop
end

#trash(*files) ⇒ Object



13
14
15
# File 'lib/cmd_tools/runner.rb', line 13

def trash(*files)
  puts ::CmdTools::Command::Trash.run(*files).join("\t")
end