Sha256: 20bb4b034b47d7685400b35b806e4126ed743db76e5188d1a912566c6f9df1c2

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

require 'shellwords'
require 'markdo/commands/command'

module Markdo
  class EditCommand < Command
    def run
      Kernel.system("#{@env['EDITOR']} #{safe_markdo_root}")
    end

    private

    def safe_markdo_root
      Shellwords.shellescape(@env['MARKDO_ROOT'])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
markdo-0.2.0 lib/markdo/commands/edit_command.rb