Sha256: 96c29b2c1c1a6fa8a32f380f0cdf81138f95353fea0b567da835e1b58cda63ad

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

require 'paint'
require 'upoj-rb'

module Scide
  VERSION = File.open(File.join(File.dirname(__FILE__), '..', 'VERSION'), 'r').read
  EXIT = {
    :unexpected => 1,
    :invalid_argument => 2,
    :not_initialized => 3,
    :screen_not_found => 4,
    :config_not_found => 13,
    :config_not_readable => 14,
    :malformed_config => 15,
    :invalid_config => 16,
    :unknown_project => 17
  }

  def self.fail condition, msg
    puts
    warn Paint[msg, :yellow]
    puts
    EXIT.key?(condition) ? exit(EXIT[condition]) : exit(1)
  end
end

%w( command config global opts overmind project screen window ).each{ |dep| require File.join(File.dirname(__FILE__), 'scide', dep) }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scide-0.0.5 lib/scide.rb