lib/mr_poole/cli.rb
def do_move(action)
      options = do_move_options(action)
      path = @params.first

      @helper.send("#{action}_usage") unless path
      fn = @commands.send(action, path, options)
      puts "#{@src_dir}/#{fn}"
    end
def do_move(action)
      options = do_move_options(action)
      path = @params.first

      @helper.send("#{action}_usage") unless path
      fn = @commands.send(action, path, options)
      puts "#{@src_dir}/#{fn}"
    end
def do_move ( action ) options = do_move_options ( action ) path = @params . first @helper . send ( "#{action}_usage" ) unless path fn = @commands . send ( action , path , options ) puts "#{@src_dir}/#{fn}" end
action is a string, either 'publish' or 'unpublish'
action is a string either publish or unpublish