Sha256: 0e9e4ac71d4f96603299c35ac11aed00edd53a3ac72ce6e556f86d807d1856e6

Contents?: true

Size: 600 Bytes

Versions: 3

Compression:

Stored size: 600 Bytes

Contents

require_relative "aid/version"

module Aid
  def self.load_paths
    @load_paths ||= [
      File.expand_path(File.dirname(__FILE__) + "/aid/scripts"),
      ".aid",
      ENV['AID_PATH']
    ].compact
  end

  def self.load_scripts!
    load_paths.each do |path|
      Dir.glob("#{path}/**/*.rb").each do |file|
        require File.expand_path(file)
      end
    end
  end

  def self.script_name
    ARGV.first
  end

  def self.script_args
    ARGV[1..-1]
  end
end

require_relative "aid/colorize"
require_relative "aid/inheritable"
require_relative "aid/script"
require_relative "aid/scripts"

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aid-0.1.2 lib/aid.rb
aid-0.1.1 lib/aid.rb
aid-0.1.0 lib/aid.rb