Sha256: c01ca567ba5c1a9497e6fafc967d1baf8f18f74be52849b1392a72f46372f39e

Contents?: true

Size: 738 Bytes

Versions: 4

Compression:

Stored size: 738 Bytes

Contents

# encoding: UTF-8

class Ide < Thor

  desc "list", "show instaled IDE versions"
  def list
    report_ides IDEServices.idelist
  end

  desc "use IDE-TAG", "use IDE with IDE-TAG"
  def use(ide_tag)
    puts "Active path: " + IDEServices.use(ide_tag)
  end
  
  desc "used", "list used IDEs in project"
  def used
    report_ides IDEServices.ideused
  end

  desc "start IDE-TAG  ", "start IDE with IDE-TAG"
  def start(idever=nil)
    idever ||= IDEServices.idelist.first
    ide = IDEServices.new(idever, ROOT)
    ide.start 
  end

private

  def report_ides(ides)
    if ides.empty?
      say "NO IDE(s) found\n"
    else
      say "found IDEs:\n"
      say ides.join("\n")
    end
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
delphivm-0.8.1 lib/dvm/ide.thor
delphivm-0.8.0 lib/dvm/ide.thor
delphivm-0.7.7 lib/dvm/ide.thor
delphivm-0.7.4 lib/tasks/ide.thor