Sha256: 9392641d5571be1caa03d7e392f3ad6571855079eff7c166191bd5dda924944a

Contents?: true

Size: 329 Bytes

Versions: 3

Compression:

Stored size: 329 Bytes

Contents

module Tabby
  class Editor
    def initialize(project=nil)
      @project = project
    end

    def run!
      if path.exist?
        system("$EDITOR #{TABBYDIR.join("#{@project}.rb")}")
      else
        Tabby::Creator.new(@project).run!
      end
    end

    def path
      TABBYDIR.join("#{@project}.rb")
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
tabby2-0.3.0 lib/tabby/editor.rb
tabby2-0.2.1 lib/tabby/editor.rb
tabby-0.1.0 lib/tabby/editor.rb