Sha256: b73a6cea2f4ce7f8c8eb6b36fba4cb9a8b0bbd5ed3869586a2b19747da66fd2c

Contents?: true

Size: 315 Bytes

Versions: 4

Compression:

Stored size: 315 Bytes

Contents

require_relative 'repository_command'

module Topicz::Commands

  class EditorCommand < RepositoryCommand

    def editor
      @config['editor'] ||
          ENV['EDITOR'] ||
          raise('No editor configured. Set one in the topicz configuraton file, or in the EDITOR environment variable.')
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
topicz-0.3.0 lib/topicz/commands/editor_command.rb
topicz-0.2.0 lib/topicz/commands/editor_command.rb
topicz-0.1.1 lib/topicz/commands/editor_command.rb
topicz-0.1.0 lib/topicz/commands/editor_command.rb